| Crates.io | dice-roller |
| lib.rs | dice-roller |
| version | 0.1.3 |
| created_at | 2019-05-30 14:53:29.921378+00 |
| updated_at | 2019-05-31 15:33:54.757065+00 |
| description | Roll dice from the command line. |
| homepage | |
| repository | https://github.com/pbyrne/roller |
| max_upload_size | |
| id | 137912 |
| size | 18,098 |
A handy roll command for rolling dice on the command line.
roll [--verbose] [DEFINITION]
roll --version
--verbose: include the individual dice rolls in the output; by default displays only the total.--version: display the version information.Uses standard dice notation to define which dice and modifiers to use.
roll: an easy-peasy six-sided dice roll.roll d20: specify to roll a 20-sided die.roll 2d8: roll two 20-sided dice.roll 2d10+4: roll 2 10-sided dice and add 4 to the result.roll 3d4-2: roll 3 4-sided dice and subtract 2 from the result.If you already have the Rust toolchain installed:
cargo install dice-roller
# add this repo as a tap
brew tap pbyrne/roller https://github.com/pbyrne/roller
# then you can install like any other package
brew install dice-roller
OS-specific binaries are attached to each release automatically. Download the one that's right for you and place it somewhere you can call it.
2d5+4d20