7 stable releases (3 major)
4.0.0 | Nov 3, 2020 |
---|---|
3.1.0 | May 5, 2020 |
3.0.0 | Apr 28, 2020 |
2.1.0 | Jul 1, 2019 |
1.0.1 | Nov 11, 2018 |
#704 in Game dev
36 downloads per month
11KB
211 lines
cute-dnd-dice
Simple library to roll dices
Random source
Relies on getrandom
by default
Usage
use cute_dnd_dice::Roll;
fn main() {
let roll = Roll::from_str("2d20+10").expect("To parse roll");
println!("I roll {}", roll.roll());
}
lib.rs
:
Simple library to roll dices
Random source
Relies on getrandom
by default
Usage
use cute_dnd_dice::Roll;
fn main() {
let roll = Roll::from_str("2d20+10").expect("To parse roll");
println!("I roll {}", roll.roll());
}
Dependencies
~215KB