A simple dice rolling library
Project description
# derby
simple dice rolling library
```python
from derby import roll
stats = ['str','int','wis','dex','con','cha']
character = { stat: roll('3d6') for stat in stats } # roll('4d6h3') if your GM is nice enough
```
## examples
```python
roll('1d20+1')
roll('2d20h1+1') # rolling with advantage
# or
roll('2d20+1h1') # mod order is pretty flexible
# but
roll('3d6 h2 l1') != roll('3d6 l1 h2')
```
simple dice rolling library
```python
from derby import roll
stats = ['str','int','wis','dex','con','cha']
character = { stat: roll('3d6') for stat in stats } # roll('4d6h3') if your GM is nice enough
```
## examples
```python
roll('1d20+1')
roll('2d20h1+1') # rolling with advantage
# or
roll('2d20+1h1') # mod order is pretty flexible
# but
roll('3d6 h2 l1') != roll('3d6 l1 h2')
```
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.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
derby-0.3-py3-none-any.whl
(4.4 kB
view hashes)