Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

risk-reinforces

0.1.2 • Public • Published

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]

Install

npm i risk-reinforces

DownloadsWeekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

5.87 kB

Total Files

8

Last publish

Collaborators

  • avatar