An open API service indexing awesome lists of open source software.

https://github.com/arranf/dice-command-parser


https://github.com/arranf/dice-command-parser

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Dice Command Parser

This library parses a simple dice roll command and produces a representation of the dice that should be rolled and its modifier.

Example input: `d6`, `3d20`, `d6 + 5`, or `2d20 - 4`, `d20+4d`, `d100, d100, d100`.