Role a
n
icedice
(or[n|d]ice
?)
ndice
is a cli dice roller.
Dices are writen in the format ${number}d{$sides}
, e.g. 1d6
means 1 six-sided dice. There's no limit to sides so a non-existing dice like 1d13
can be rolled.
ndice 1d6 2d8 4d10
works.Download a pre-compiled binary from the release page
Install with cargo:
sh
$ cargo install ndice
sh
$ ndice [dice]
Examples:
```sh
$ ndice 1d6 Rolled: ["d6 => 1"] Result: 1
$ ndice 2d8 2d4 Rolled: ["d8 => 6", "d8 => 3", "d4 => 1", "d4 => 1"] Result: 11 ```
We love and welcome every form of contribution.
Here are some good places to start:
Sometimes it's nice to install a specific version of mktoc, this can be done with the following command:
```sh
cargo install --git https://github.com/KevinGimbel/mktoc --force --rev $COMMIT_ID
cargo install --git https://github.com/KevinGimbel/mktoc --force --branch $BRANCH_NAME ```
MIT, see LICENSE file.