Skip to content
RISK battle simulator
Branch: master
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.
config
lib
test
.formatter.exs
.gitignore
README.md
mix.exs

README.md

RiskDice

A simulator for RISK battles, simulating an attacking army of x troops vs a defending army of y troops, fighting each other z times.

When all z battles has been simulated, the following questions are answered:

  • How possible is it for the attacking army to win? (win_rate, %)
  • How many troops will remain on average? (avg_remaining)
  • How many troops will remain on median? (med_remaining)

Installation

If available in Hex, the package can be installed by adding risk_dice to your list of dependencies in mix.exs:

def deps do
  [
    {:risk_dice, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/risk_dice.

You can’t perform that action at this time.