HitotsuOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How the house plays: each popular variant, as a choice at the set-up.
インポート
import type { HitotsuOptions } from "@johnmorrisdotca/hitotsu";
定義
type HitotsuOptions = {
stacking: "off" | "same" | "any";
jumpIn: boolean;
sevenZero: boolean;
drawToMatch: boolean;
wildFour: "challenge" | "strict";
deal: 7 | 5;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
stacking | "off" | "same" | "any" | Stacking a draw card on a draw card, so the next player takes the total: never (the published rule), a Draw Two on a Draw Two and a Wild Draw Four on a Wild Draw Four, or any draw card on any (progressive draw). |
jumpIn | boolean | Jump-in: a card identical to the one on top may be played out of turn, and play goes on from whoever played it. |
sevenZero | boolean | Sevens and zeros: a seven swaps hands with a player of your choice, a zero passes every hand on round the table. |
drawToMatch | boolean | Draw until you can play, rather than one card. |
wildFour | "challenge" | "strict" | The Wild Draw Four: playable any time, and challengeable by the player it lands on (the published rule), or only when you hold nothing of the colour, and never challenged (no bluffing). |
deal | 5 | 7 | Cards dealt to each player: seven, or five in party mode. |
例
import type { HitotsuOptions } from "@johnmorrisdotca/hitotsu";
import { HITOTSU_PARTY } from "@johnmorrisdotca/hitotsu";
const value: HitotsuOptions = HITOTSU_PARTY;
console.log(value.stacking);any出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。