HITOTSU_ALL_WILD_DECK定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 { HITOTSU_ALL_WILD_DECK } from "@johnmorrisdotca/hitotsu";
定義
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}`),
]
例
import { HITOTSU_ALL_WILD_DECK } from "@johnmorrisdotca/hitotsu";
console.log(HITOTSU_ALL_WILD_DECK.length);112出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。