/d6

A python based dice program for rpgs

MIT LicenseMIT

d6
==

A python based dice program for rpgs

Functions:
roll(s)
    s is a string in the form xdy where:
        -x is the number of dice
        -y is the number of sides per die
multiroll(s)
    s is a string of rolls
        e.g. '2d6 4d20 3d12'

Command line:
python roll.py 2d20 4d6 [operations]
    operations:
        -add, sum, total, a, s
            returns the sum of all dice
        -p, pirate, h, he
            returns number of successes as determined by the herecy engine
        -l, list
            returns the list of dice alongside other operation