3 releases

0.1.2 Jan 18, 2024
0.1.1 Jan 17, 2024
0.1.0 Jan 17, 2024

#1549 in Command line utilities

45 downloads per month

MIT license

32KB
754 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

Dependencies

~1.5–2.1MB
~40K SLoC