本文へ移動

Hitotsu一つ

色か数字をそろえて出し、手札が1枚になったら声をかけます。クラシックやパーティーのルールで、コンピューターや共有のテーブルで遊べます。

「ヒトツ」は「一つ」。手札が1枚になったときに言う言葉です。 名前について(英語)

目次

リファレンス · ゲームとテーブル

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

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/hitotsu 1.6.1 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。