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.2.2.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file dicetray-1.2.2.tar.gz
.
File metadata
- Download URL: dicetray-1.2.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed0700a1de0c84e3e0c3e79dba929179fdd78ab1cccb7423d4b5057b72082d3d |
|
MD5 | f4244d65321d1f77aa1c89e49fc8ccc8 |
|
BLAKE2b-256 | 522071894fb44833493271b3e3e07a69b020c75435181573b8f5e92724639448 |
File details
Details for the file dicetray-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: dicetray-1.2.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3004b75457730435085de725deb068189ff8eb4a1368a50ef780e71fd1bff7df |
|
MD5 | 169b76cf7377fa5446eefc4e9b066754 |
|
BLAKE2b-256 | 4514e36d6f71daa55fe7fad120b9da9cdb12a000428dfaef5d702a25f775f951 |