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 # important grammar rule. # l and h modifiers must preceed + and - operators. that is all.
command line
$ python -m derby 2d10 1d20 3d6+1
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size derby-0.7.0-py3-none-any.whl (3.5 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |