Generate statistic distribution according initial dice strategy
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
charts
input
misc/doc
stats
.gitignore
LICENSE
README.md
dice-stats
export.sh
main.go

README.md

Dice Probability Distribution Software

This software generate probability distribution for a given dice throw.

Dice Logo

Download

System 32-bit 64-bit
Windows dice-stats-windows-386.tar.gz dice-stats-windows-amd64.tar.gz
Linux dice-stats-linux-386.tar.gz dice-stats-linux-amd64.tar.gz
OSX dice-stats-darwin-386.tar.gz dice-stats-darwin-amd64.tar.gz

Throw query format

{n}d{m}(k{p}) where:

  • n: number of dice to throw
  • m: number of faces of each dice
  • p: number of best dice results to keep

Examples: 2d6, 3d10, 7d6k3.

Prompt use

> Throw query:

Requires a string that must follow the Throw query format.

> Versus throw query (leave empty to ignore)

Can be a string that must follow the Throw query format or be empty in order to skip.
If provided, it will generate win probabilities for first throw quiery against this one.

Command use

The only argument required is a string query following the Throw query format.

Command Option

Iterations

  • Syntax: -i
  • Type: int
  • Default: 1000000
  • Example: > ./dice-stats -i=10000 2d6

Number of iterations to use in order to define probabilities accuracy.

Versus

  • Syntax: -vs
  • Type: string using throw query format
  • Default: none
  • Example: > ./dice-stats -vs=3d6 2d6

Use another dice throw and compare chances to win against this one.

Example

Generate probability distribution for throwing 2 dice with 6 faces:

> ./dice-stats 2d6

Output: 2d6 Generate probability distribution for throwing 3 dice with 10 faces:

> ./dice-stats 3d10

Output: 3d10 Generate probability distribution for throwing 7 dice with 6 faces and keeping the 3 best results:

> ./dice-stats 7d6k3

Output: 7d6k3 Generate probability distribution of winning throwing 7 dice with 6 faces and keeping the 3 best results against 5 dice with 6 faces and keeping the 3 best:

> ./dice-stats -vs=5d6k3 7d6k3

Output: -vs=5d6k3 7d6k3 Generate probability distribution of winning throwing 17 dice with 4 faces and keeping the 9 best results against 25 dice with 4 faces and keeping the 6 best:

> ./dice-stats -vs=25d4k6 17d4k9

Output: -vs=25d4k6 17d4k9