@riskgame/continents
v1.0.0
Published
Determines which continents a player controls.
Downloads
2
Maintainers
Readme
risk-continents
Determines which continents a player controls.
Install
npm install risk-continents
Usage
const getControlledContinents = require("risk-continents");
const world = {
"alaska": { army: "Blue" },
"argentina": { army: "Red" },
...
}
getControlledContinents("Blue", world); // ["asia", ..]