#random #game #dices #dice-roll #cli

app rolls

This command exists to help roll dices in D&D games. The following are implemented: d4, d6, d8, d10, d20

1 unstable release

0.1.2 Oct 26, 2023

#10 in #dice-roll

MIT license

6KB
72 lines

Rolls

Rolls is a cli to help people who plays Dangeons and Dragons. It implements many dice types: d4, d6, d8, d10, d20.

Install

$ cargo install rolls

Use

$ ./rolls -h
This command exists to help roll dices in D&D games.
The following are implemented: d4, d6, d8, d10, d20.

Usage: rolls <DICES> <AMOUNT>

Arguments:
  <DICES>   The type of dice to roll [possible values: d4, d6, d8, d10, d20]
  <AMOUNT>  The amount of dices to roll

Options:
  -h, --help     Print help
  -V, --version  Print version

$ ./rolls d4 3

Processing your results

 1,1 ⚄ 2,1 ⚄ 3,1 

Total of rolls: 3

Dependencies

~1.5–2.1MB
~40K SLoC