Skip to main content

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

Project description

SnakeEyes 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.1.0.tar.gz (5.8 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.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: snakeeyes-spaceprius-0.1.0.tar.gz
  • Upload date:
  • Size: 5.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

Hashes for snakeeyes-spaceprius-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f5307cf2800028296234a006008cf8ac1a001bc38ab765df33f47b3e288b380d
MD5 1df7ec77afe5dd6758df21d8489e1ab1
BLAKE2b-256 d99cbf6481432d164c78cf9815d686e3ffc702f053f9196cee5af2adf374ad07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snakeeyes_spaceprius-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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

Hashes for snakeeyes_spaceprius-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41dd8b2d5d79dd93634e400c865e8f30a8a67495fb9f116371a08e4e4e39f98e
MD5 b05eee3ae2656fa90c4df7c7e8ba299f
BLAKE2b-256 991ca38aabea564d6c13be823d9de1ffb794c64bba0a43505ef6c5365af30808

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