@riskgame/reinforces

1.0.0 • 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]

/@riskgame/reinforces/

    Package Sidebar

    Install

    npm i @riskgame/reinforces

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    5.73 kB

    Total Files

    8

    Last publish

    Collaborators

    • brunoscopelliti