Skip to content

A programming language for calculating dice roll statistics.

Notifications You must be signed in to change notification settings

walesey/dicelang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dicelang

Build Status

A programming language for calculating dice roll statistics.

Installation

$ go get github.com/walesey/dicelang

Usage

Roll some dice

$ dicelang "resolve 2d6.add"

calculate the mean value for rolling 2 dice and adding the result

$ dicelang "mean 2d6.add"

generate a histogram

$ dicelang "hist 2d6.add"

adding multiple different dice

$ dicelang "hist [2d6.add, d10.add, d6.add]"

rolling a number of dice equal to a previous roll

$ dicelang "hist 2d6.add.d6.add"

number of dice that roll equal to or greater than a value

$ dicelang "hist 10d6.5+"

Example1 Example2

About

A programming language for calculating dice roll statistics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published