genesys-dice-roller

A simple Rust library for taking a Genesys dice string as input and calculating a result.

Usage

```rust use dice_roller::dice::{Dice, RollType}; use std::str::FromStr;

let dice = Dice::fromstr("2p2g1y")?; // Roll dice uses thread RNG let result = dice.rolldice(); ```

Example input

2p2g1y