risiko-dices
v1.0.1
Published
"A simple package to launch dices"
Downloads
2
Readme
risiko
A simple package to cast dices
Getting Started
Install Risiko Dices as an npm module and save it to your package.json file as a development dependency:
npm install risiko-dices
Example
var risiko = require('risiko-dices');
console.log(risiko.play(3,2));
// { attackDices: [ 6, 4, 1 ],
// defendDices: [ 2, 2 ],
// attackArmyLose: 0,
// defendArmyLose: 2 }
License
MIT