Reference · Rules, maps and records
cardTerritoryfunction
The territory a card shows, or null for a wild card.
Import it
import { cardTerritory } from "@johnmorrisdotca/tenka";
Definition
function cardTerritory(card: TenkaCard, map?: TenkaMap): number | null
Parameters
| Name | Type | Description |
|---|---|---|
card | number | The card index within this map’s deck. |
map (optional) | TenkaMap | The native world or Europe map to use. |
Returns
number | null
The territory index, or null for a wild card.
Examples
import { cardTerritory } from "@johnmorrisdotca/tenka";
console.log(cardTerritory(42));nullWhat it prints (run when this page was built)