/diceroll

Roll some dice

Primary LanguageGoMIT LicenseMIT

diceroll

CI Go Report Card Go Reference

Roll some dice

Usage

Library

combo, err := dice.ParseCombo("3d4 + 1d6 + 2")

// handle error

fmt.Println(combo.Roll())

cmd

# install
go get -u github.com/spenserblack/diceroll/cmd/...

# roll 3d4 + 1d6 + 2
diceroll 3d4 + 1d6 + 2