Reference · Rules, maps and records
cardKindfunction
What a card shows: land, sea or air for a territory's card, in turn round the map; wild for a wild card.
Import it
import { cardKind } from "@johnmorrisdotca/tenka";
Definition
function cardKind(card: TenkaCard, map?: TenkaMap): TenkaCardKind
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
TenkaCardKind
What a card shows: land, sea or air for a territory's card, in turn round the map; wild for a wild card.
Examples
import { cardKind } from "@johnmorrisdotca/tenka";
console.log(cardKind(0));landWhat it prints (run when this page was built)