die is a dice library, for RPG and Board Game games, tools, whatever.
Emphasizes flexibility over speed.
via source:
python setup.py install
via pip:
pip install --upgrade die
Author uses nose to run unittests, YMMV. :
pip install --upgrade pep8 --use-mirrors
nosetests
Unittests run against the following Python versions using Travis CI:
Until some docs are written have a look at demo.py
.
- 0.4.0
Backwards incompatible. Operators, coercions, comparisons roll die, str() no longer does)
- 0.3.0
Merged rolls() into roll(), renamed tuple* to, added die.items property. str() rolls die,
- 0.2.0
Updated to modern style, pep8, tests, docs, travis-ci, more unittests. Py3.x support.
- 0.1.0
Initial release.