Roll variously sided dice with syntax for tabletop games. It can be used as a library or a standalone application with the same parameters as rolldice. This is a python implementation of 'rolldice' by Stevie Strickland <sstrickl@
pyrolldice.py can be run directly, see --help for documentation.
two concepts this module works with are "dice strings" and "dice dicts". A dice string is a properly formated string (see documentation), and dice dict is a dictionary object that holds a roll profile.
The module holds 3 utility functions
-roll_dice takes a dice string and returns a list of results
-parse_
-roll_dice_dict takes a dice dict and returns a list of results
roll_dice simply passes it's string to parse_dice and then the resultant to roll_dice_dict.
Project information
- Maintainer:
- BrandonTomlinson
- Driver:
- Not yet selected
- Licence:
- GNU GPL v3, GNU LGPL v3
View full history Series and milestones
trunk series is the current focus of development.
All packages Packages in Distributions
-
rolldice source package in Xenial
Version 1.14-2 uploaded -
rolldice source package in Trusty
Version 1.10-5 uploaded -
rolldice source package in Precise
Version 1.10-5 uploaded -
rolldice source package in Mantic
Version 1.16-1build1 uploaded -
rolldice source package in Lunar
Version 1.16-1build1 uploaded