Skip to main content

A simple python dice library built with regex, currently in alpha

Project description

SnakeEyes PyPI version Build Status Codacy Badge Codacy Badge

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snakeeyes-spaceprius-0.6.2.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snakeeyes_spaceprius-0.6.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file snakeeyes-spaceprius-0.6.2.tar.gz.

File metadata

  • Download URL: snakeeyes-spaceprius-0.6.2.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for snakeeyes-spaceprius-0.6.2.tar.gz
Algorithm Hash digest
SHA256 b9a632a048228b351d581db50117179f20702b28369ef6d9736dcea60773a28f
MD5 a8553c500d0f79ddc9bb96ca5c006136
BLAKE2b-256 41b5f1dcea073b8e700420807ea66c5c1654e91d8ff775acb30b23cf4c09dcf7

See more details on using hashes here.

File details

Details for the file snakeeyes_spaceprius-0.6.2-py3-none-any.whl.

File metadata

  • Download URL: snakeeyes_spaceprius-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for snakeeyes_spaceprius-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aa4f8d8d0e197e97a2fef2b898b960b1ae19c9c4964fe8e7a012216c57b4a0c6
MD5 128cf0fbb796765f0f41b079bd8fc4b2
BLAKE2b-256 5ad1722d711fe4d175488ec5b6336406dc80faf6d3fd62c636cd2874d4520615

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page