jarniadice

A library for parsing and evaluating Jarnia Dice Notation


Keywords
dice, game, rpg, roller, jarnia
License
MIT
Install
pip install jarniadice==0.1.3

Documentation

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)

Run three d6 and return the sum:

$ python -m jarniadice '3d6'

Run two d10 and return the value of the higher:

$ python -m jarniadice '2d10kh'

Run two d10 and return the value of the lower:

$ python -m jarniadice '2d10kl'

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

$ python -m jarniadice '2d10kl'