Reference · Game engine and table
HITOTSU_ALL_WILD_DECKconstant
The cards of the all-wild deck: 112 wilds, none of them with a colour: 32 plain, 24 each of Skip and Reverse, 20 Draw Two and 12 Wild Draw Four. Fewer of the draw cards than a classic deck has per card, because every card here may be played on any other, and with more of them hands only ever grow.
Import it
import { HITOTSU_ALL_WILD_DECK } from "@johnmorrisdotca/hitotsu";
Definition
const HITOTSU_ALL_WILD_DECK: readonly string[] = [
...Array.from({ length: 32 }, (_, copy) => `W${WILD}${copy}`),
...[SKIP, REVERSE].flatMap((face) => Array.from({ length: 24 }, (_, copy) => `W${face}${copy}`)),
...Array.from({ length: 20 }, (_, copy) => `W${DRAW_TWO}${copy}`),
...Array.from({ length: 12 }, (_, copy) => `W${WILD_FOUR}${copy}`),
]
Examples
import { HITOTSU_ALL_WILD_DECK } from "@johnmorrisdotca/hitotsu";
console.log(HITOTSU_ALL_WILD_DECK.length);112What it prints (run when this page was built)