4 releases

0.1.3 May 22, 2024
0.1.2 Jan 18, 2024
0.1.1 Jan 17, 2024
0.1.0 Jan 17, 2024

#987 in Command line utilities

Download history 5/week @ 2024-09-24

216 downloads per month

MIT license

30KB
789 lines

Rust

iron-dice

A CLI die roller for every RPG enthusiast.

Usage

  • iron_dice will yield the result of 3d6
  • iron_dice -d "d20" will throw and yield 1d20
  • iron_dice -d "d100+40" will throw and yield 1d100 and will add 40 to the result
  • iron_dice -d "5d6 sc6" will throw 5d6 and for every 6 will count 1 success
  • iron_dice -d "4d6 max3" will throw 4d6 keeping the largest 3
  • iron_dice -d "3d8 ex7" will throw 3d8 and explode every die showing 7 or more
  • iron_dice -d "3d6" -t 5 will throw 3d6 5 times

Change log 0.1.3

  • Added the die definition to output

Dependencies

~1.3–2MB
~36K SLoC