/py-jarniadice

Primary LanguagePythonMIT LicenseMIT

Jarnia Dice

A library for parsing and evaluating Jarnia Dice Notation.

In the future, we aim to have all the features of standard Dice Notation, but also more.

The current stage of development is pre-alpha, and I'm running this library only on a private telegram bot and implementing the features as I need.

Documentation (Draft)

Roll three d6 and return the sum:

$ python -m jarniadice '3d6'

Roll two d10 and return the value of the higher:

$ python -m jarniadice '2d10kh'

Roll two d10 and return the value of the lower:

$ python -m jarniadice '2d10kl'

Roll two d10 and return all the values as a numpy.ndarray:

$ python -m jarniadice '2d10ka'