/risk-reinforces

Computes the number of reinforces a player can have

Primary LanguageJavaScriptMIT LicenseMIT

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]