Reference · Rules, maps and records
TENKA_DECKconstant
Every card in the game: the territories' cards, then the wild cards.
Import it
import { TENKA_DECK } from "@johnmorrisdotca/tenka";
Definition
const TENKA_DECK: readonly number[] = Array.from({ length: TENKA_TERRITORY_COUNT + TENKA_WILD_CARDS }, (_, card) => card)
Examples
import { TENKA_DECK } from "@johnmorrisdotca/tenka";
console.log(TENKA_DECK);[
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
40, 41, 42, 43
]What it prints (run when this page was built)