dice_roller
A simple Rust library for taking a dice string as an input and calculating a result.
Usage
use dice_roller::dice::Dice;
let dice = Dice::create_dice("2d20 + 1").unwrap();
let result = dice.roll_dice();
A simple Rust library for taking a dice string as an input and calculating a result.
use dice_roller::dice::Dice;
let dice = Dice::create_dice("2d20 + 1").unwrap();
let result = dice.roll_dice();