Diced

Simple algraeic dice notation parser for Gleam

Package Version Hex Docs

gleam add diced
import diced

pub fn main() {
  let dice = diced.dice_from_string("2d20kh")
  // Ok(diced.Dice(2, 20, diced.Advantage))
}

Further documentation can be found at https://hexdocs.pm/diced.

Development

gleam run   # Run the project
gleam test  # Run the tests
Search Document