dnd_dice_roller 0.1.0

A simple dice rolling library for dnd dice strings
Documentation

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();