EuchrePhase型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The first round of the making (take the turned card's suit, or pass), the second (name another suit, or pass — the dealer may not), the dealer's discard, the tricks, or the game over.
インポート
import type { EuchrePhase } from "@johnmorrisdotca/toranpu/euchre";
定義
type EuchrePhase = "order" | "call" | "discard" | "playing" | "over";
例
import { CARD_GAME_TABLES, newGame } from "@johnmorrisdotca/toranpu";
import type { EuchrePhase } from "@johnmorrisdotca/toranpu/euchre";
const names = Array.from({ length: CARD_GAME_TABLES.euchre.defaultPlayers }, (_, seat) => `Seat ${seat + 1}`);
const game = newGame("euchre", { players: names, seed: 42 })!;
const value: EuchrePhase = game.phase;
console.log(value);order出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。