@riskgame/reinforces
v1.0.0
Published
Computes the number of reinforces a player can have
Downloads
3
Maintainers
Readme
risk-reinforces
Computes the number of reinforces a player can have.
Install
npm install risk-reinforces
Usage
const getReinforcesCount = require("risk-reinforces");
const world = {
"alaska": { army: "Blue" },
"argentina": { army: "Red" },
}
getReinforcesCount("Blue", world); // [Number of reinforces, Number of regions]