die

Library for simulating dice, dice rolls, and stats on dice.


License
QPL-1.0
Install
pip install die==0.2.0

Documentation

die

Build status

About

die is a dice library, for RPG and Board Game games, tools, whatever.

Emphasizes flexibility over speed.

Installing

via source:

python setup.py install

via pip:

pip install --upgrade die

Testing

unittest prerequisites:

Author uses nose to run unittests, YMMV.

pip install --upgrade pep8 --use-mirrors
nosetests

Unittests run against the following Python versions using Travis CI:

Using

Until some docs are written have a look at demo.py.

History

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.