Roll a dice from the command line.
go get github.com/Lajule/dicedice uses the following syntax:
<draws>d<faces><draws>d<faces>+<modifier><draws>d<faces>-<modifier>
Consider following input file draws:
3d6
6d3+10
dice binary should be used like this:
dice draws
11
20or using Here Documents syntax :
dice <<EOF
> 3d6
> 6d3+10
EOF
11
20or even piping command result :
{
> echo 3d6
> echo 6d3+10
} | dice
11
20