Skip to content

AlecGhost/roll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

roll

Simple CLI dice roller.

usage

roll [DICE]...

Supports standard notation (NdS) and advantage/disadvantage (a/d).

# normal roll
roll 1d20

# multiple dice
roll 4d6 1d8

# advantage (roll 2 keep highest)
roll 1d20a

# disadvantage (keep lowest)
roll 1d20d

# modifiers (add/subtract from result)
roll 1d20+5
roll 1d8-2

Output looks like this:

+-------+--------+
| Die   | Roll   |
+=======+========+
| d20a  | 18 (4) |
| d6    | 5      |
+-------+--------+
| Total | 23     |
+-------+--------+

install

cargo install alecghost-roll

or with this repo checked out locally

cargo install --path .

About

Vibe-coded CLI dice roller

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages