Skip to content
Python dice library
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
die
tests
.gitignore
.travis.yml
LICENSE
MANIFEST.in
README.rst
demo.py
setup.py

README.rst

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.
You can’t perform that action at this time.