A simple python dice library built with regex, currently in alpha
Project description
SnakeEyes 
SnakeEyes is a python dice library designed to be easily extensible. VERY MUCH WIP
Input
Input with snakeyes is done in form of
[quantity]d[sides][diceoperators][math]
Examples of valid input are:
1d20
4d6
1d20+5
(1d20+27)*16
(20+5)/12
Operators
"x" - Exploding dice, used in the form:
[diceroll]x[threshhold]
Any roll in the result set, meeting or exceeding the threshold, will trigger another roll to be made. Returns the set of rolls, with the addition of any exploded rolls.
">" - Inequality, used in the form:
[diceroll]>[threshold]
Any roll which exceeds the threshold will count as a success, returns a tuple with the rolls value, combined with a bool indicating whether it exceeded the threshold.
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
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
File details
Details for the file snakeeyes-spaceprius-0.0.3.tar.gz.
File metadata
- Download URL: snakeeyes-spaceprius-0.0.3.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a50ce5feaca4e89fb2f2a7d1d6140e7532df6a202a323052b24bb2567846c82
|
|
| MD5 |
5d66d824aaec89b51e31aa4161f4c09e
|
|
| BLAKE2b-256 |
ccfa8b4bf73f5d959c0c03d7cd2a194efab8aa8da6b69c9db47227a884cb2cf0
|
File details
Details for the file snakeeyes_spaceprius-0.0.3-py3-none-any.whl.
File metadata
- Download URL: snakeeyes_spaceprius-0.0.3-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ce425940ac8c88869f2b3206ef6f6b230e604d923b5c11fedf3cc33e221e923
|
|
| MD5 |
915e6e14ac49ff58e25e9aec7ce6fc7d
|
|
| BLAKE2b-256 |
959d9cef8ef19cc21d26ea4f07b449a2f1d848b2dedf0b4001bca6e4529ba7ea
|