Reference · Rules, maps and records
tenkaDeckForfunction
Every card of a game on this map: a card for each territory, numbered as the territories are, then the wild cards.
Import it
import { tenkaDeckFor } from "@johnmorrisdotca/tenka";
Definition
function tenkaDeckFor(map?: TenkaMap): TenkaCard[]
Parameters
| Name | Type | Description |
|---|---|---|
map (optional) | TenkaMap | The native world or Europe map to use. |
Returns
number[]
Every card of a game on this map: a card for each territory, numbered as the territories are, then the wild cards.
Examples
import { TENKA_MAPS, tenkaDeckFor } from "@johnmorrisdotca/tenka";
console.log(tenkaDeckFor(TENKA_MAPS.europe).length);51What it prints (run when this page was built)