Skip to main content

A library that handles dice rolls for the Swedish roleplaying game EON IV (https://helmgast.se/eon/).

Project description

eon4dice

A library that handles dice rolls for the Swedish tabletop roleplaying game EON IV (https://helmgast.se/eon/).

All six sided dice rolls will explode according to Eon rules, which means that every time a 6 is rolled, it will be removed and the die replaced two new six sided dice, which can then explode in turn.

As the rules are currently only available in Swedish, the letter T is used instead of D to denote dice.

Installation

pip install eon4dice

How to use

Import and call the 'roll' function with the desired roll as a string:

from eon4dice import dice

result = dice.roll('4T6+2')
result2 = dice.roll('1t100')

D6's will always explode. No other dice (such as D10 or D100) will explode. Bonus is optional. Minus (-) can not be used instead of plus (+)

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

eon4dice-1.1.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

eon4dice-1.1.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

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