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
# or
roll('2d20+1h1') # mod order is pretty flexible
# but
roll('3d6 h2 l1') != roll('3d6 l1 h2')
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.
Source Distribution
derby-0.5.1.win32.zip
(10.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
derby-0.5.1-py3-none-any.whl
(4.9 kB
view details)
File details
Details for the file derby-0.5.1.win32.zip.
File metadata
- Download URL: derby-0.5.1.win32.zip
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bde72d5c7db43731a059913f1edc4bde7ae1b6e030eb0c5d3a73fc7a8e173058
|
|
| MD5 |
092aa67b71f9486b702ddb12396ca650
|
|
| BLAKE2b-256 |
b3602bd6ac1269b01a16bf3164d7c93e5467bd8c1dd967ed68b8be22152f590b
|
File details
Details for the file derby-0.5.1-py3-none-any.whl.
File metadata
- Download URL: derby-0.5.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e1b23edf59c23f50edccb92573b4c77a25fded922022387c41554211339cc6a
|
|
| MD5 |
47ea456290cc00c7843d2b736feb0d52
|
|
| BLAKE2b-256 |
80d3e7efb3742d13d0ac874f876b0187edee7cec6851dc243c4261b16841ed30
|