Skip to content

Lajule/dice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dice

Roll a dice from the command line.

Installation

go get github.com/Lajule/dice

Syntax

dice uses the following syntax:

  • <draws>d<faces>
  • <draws>d<faces>+<modifier>
  • <draws>d<faces>-<modifier>

Examples

Consider following input file draws:

3d6
6d3+10

dice binary should be used like this:

dice draws
11
20

or using Here Documents syntax :

dice <<EOF
> 3d6
> 6d3+10
EOF
11
20

or even piping command result :

{
> echo 3d6
> echo 6d3+10
} | dice
11
20

About

Roll a dice from the command line

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages