Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Probability calculator for the board game risk

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

Risk

Probability of territory capture for the board game risk

"Risk"

npm install risk -g

Usage

$ risk [attackers] [defenders]

The number of attackers does not include the one required on the territory

var risk = require('risk');

risk(7, 5); // 0.7364
risk(4, 5); // 0.3586

License

MIT

Something went wrong with that request. Please try again.