Skip to content

nabaxo/go-dice-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dead simple dice-rolling application

Just a small CLI app I wrote in Go for fun, for my own use.

Caution

This is the first thing I wrote in Go, I know the code is trash.

It uses Random.org, so if you wanna run it yourself, you need to create a file that's called apikey with, well, your Random.org API key and put it in the root/next to the binary.

Build script for a smaller binary (requires UPX to be installed)

./build.sh

Instructions of use

Run it in the terminal like this

Important

Don't forget your apikey file

./dice-roller

Format your dice rolls like this:

ndp+q

e.g. d10, 2d20, 2d12-5, or 10d6a3 etc

option
n Number of dice (optional)
p Type of dice
+ The type of modifier
q The modifier number

Modifiers:

modifier
+ Add a constant number to roll
- Subtract a constant number from roll
a Show all dice which rolled the modifier number and above
b Show all dice which rolled the modifier number and below

Other commands

command
r or [enter] for repeat last
r[n] where n is a specific roll to repeat
q to quit

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published