Package Exports
- risk
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (risk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Risk
Probability of territory capture for the board game risk
!["Risk"][png] [png]: https://raw.github.com/brainss/risk/master/screenshot.png
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