@riskgame/continents
v1.0.0
Published
Determines which continents a player controls.
Downloads
3
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", ..]