Skip to main content

A simple dice rolling library

Project description

derby

simple dice rolling library

from derby import roll

stats = ['str','int','wis','dex','con','cha']
character = { stat: roll('3d6').value for stat in stats } # roll('4d6h3') if your GM is nice enough

examples

roll('1d20+1')
roll('2d20h1+1') # rolling with advantage
roll('4d6h3+1')  # same as roll('4d6+1h3')

# also supports doing comparisons
roll('3d6=18')
roll('1d20>14')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

derby-0.7.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file derby-0.7.2-py3-none-any.whl.

File metadata

  • Download URL: derby-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0

File hashes

Hashes for derby-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 39db468983e923d091a3bd2a09494421729d395bce7b1bac8c7fa483b0b5d505
MD5 f8aa78d79f321d5450579dc364827948
BLAKE2b-256 af4e6fd917588abf8b035af336660d69637d49eb8d0b5aa8958393710810a7fb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page