Simple Python tools for dice-based probabilities
Project description
Copyright and other protections apply.
Please see the accompanying LICENSE
file for rights and restrictions governing use of this software.
All rights not expressly waived or licensed are reserved.
If that file is missing or appears to be modified from its original, then please contact the author before viewing or using this software in any capacity.
dyce
- Simple Python tools for dice-based probabilities
:point_up: Curious about integrating your project with the above services? Jeff Knupp (@jeffknupp) describes how.
dyce
is a pure-Python library for exploring dice probabilities designed to be immediately and broadly useful with minimal additional investment beyond basic knowledge of Python.
Inspired by AnyDice, dyce
leverages Pythonic syntax and operators for rolling dice and computing weighted outcomes.
While Python is not as terse as a dedicated grammar, it is quite sufficient.
Those familiar with various game notations should be able to adapt quickly.
See the docs for more information.
dyce
is licensed under the MIT License.
See the accompanying LICENSE
file for details.
Source code is available on GitHub.
Issues
If you find a bug, or want a feature, please file an issue (if it has not already been filed). If you are willing and able, consider contributing.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.