Skip to content

isirasan/roll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

roll - commandline pen&paper dice roller

author

isirasan

@isirasan on twitter

usage

just add the dice you want to roll as arguments. mathematic operations and dice can be compined as you want.

Example

./roll (2d6+3)*5
./roll 2d6+1d4+5d8
./roll 1d%
./roll 1d%*5+(21+1d6)+123d456

Operators

Operator Desc
+ addition
- subtraction
* multiplication
/ division (rounded mathematically)
c division (ceiled)
f division (floored)
p or ^ pow
( ) braces for calculation order

Dice

[n]d[m]-> n and m can be any numeric unsigned 64bit value greater then 0

also works with [n]D[m], [n]w[m] and [n]W[m]

d[m] will be prased as 1d[m] and 1d% is 1d100

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages