/rust-roll

Simple dice roller written in Rust

Primary LanguageRustMIT LicenseMIT

rust-roll

Simple binary program for rolling dice, such as for D&D. Examples:

$ roll --avg d20+2
Rolled 9 = 1d20 (7) + 2
Average: 12.5
$ roll 3d8
Rolled 14 = 3d8 (2, 4, 8)
$ roll 2d20 + 5 - d8 + 2
Rolled 24 = 2d20 (17, 1) + 5 + -1d8 (-1) + 2