Tabletop RPG Dice roller
Project description
Tabletop RPG Dice rolling manager for handling Standard Dice Notation
Example
>>> from dicetray import Dicetray
>>> Dicetray('1d20 + 3').roll()
15
>>> Dicetray('4d6dl').roll()
10
>>> Dicetray('4d6kh3').roll()
12
>>> d = Dicetray('2d20kh + 1d4 + 3')
>>> d.result
>>> d.dice
set()
>>> d.roll()
18
>>> d.dice
{<Dice (d20): 14>, <Dice (d20): 14>, <Dice (d4): 1>}
>>> d.result
18
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
dicetray-1.1.3.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file dicetray-1.1.3.tar.gz
.
File metadata
- Download URL: dicetray-1.1.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6fe313de493adf8cf15847655efd2a1cbaf25711a67c08cb4d63ece14aab850 |
|
MD5 | d75c8cbc3a705985246ae6d2087cd800 |
|
BLAKE2b-256 | 7dd6ffe800eb67530c5d0707453d9380f40cfc9d963dfa742bb341abff5fc4b1 |
File details
Details for the file dicetray-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: dicetray-1.1.3-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bc0e5ac52a7b3d166060b1612e8fb0058b0846f23db2d6477016ef8554fb7aa |
|
MD5 | a79ce43df023356460e9613f4246d0f6 |
|
BLAKE2b-256 | 0bcf0ee365717ca86cd3c6f75c3e34da42d0d45dad8e052ecbcf7b205fa1ef43 |