JSPM

@riskgame/target-cards

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q26384F
  • License MIT

Risk target cards

Package Exports

  • @riskgame/target-cards

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@riskgame/target-cards) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

risk-target-cards

Risk target cards.

Install

npm install risk-target-cards

Cards

A card is like

{
  type: "destroy",
  plainText: "Destroy the Black army. If you are the Black army, or Black army are eliminated by someone else your objective becomes conqueer 24 territories",
  army: "black",
  fallback: {
    type: "regions",
    regions: 24,
    tankPerRegion: 1,
    tournament: false,
  },
  tournament: false,
}

Possible card's types: destroy, regions, conqueer, and tournament.

Card's fields change on the basis of the card's type. Other examples:

  • Conqueer continents
{
  type: "conqueer",
  plainText: "Conqueer the totality of Asia and South America",
  continents: ["asia", "south-america"],
  extra: false
  tournament: false,
}
  • Conqueer regions:
{
  type: "regions",
  plaintText: "Hold 18 territories with at least 2 tanks on each territory",
  regions: 18,
  tankPerRegion: 2,
  tournament: false,
}
  • Tournament
{
  type: "tournament",
  countries: ["congo", ...],
  plainText: "Conqueer the following countries: Congo, ...",
  tournament: true
}