SpadesPhasetype
Bidding how many tricks each seat will take, playing the deal out trick by trick, or the game over.
Import it
import type { SpadesPhase } from "@johnmorrisdotca/toranpu/spades";
Definition
type SpadesPhase = "bidding" | "playing" | "over";
Examples
import { CARD_GAME_TABLES, newGame } from "@johnmorrisdotca/toranpu";
import type { SpadesPhase } from "@johnmorrisdotca/toranpu/spades";
const names = Array.from({ length: CARD_GAME_TABLES.spades.defaultPlayers }, (_, seat) => `Seat ${seat + 1}`);
const game = newGame("spades", { players: names, seed: 42 })!;
const value: SpadesPhase = game.phase;
console.log(value);biddingWhat it prints (run when this page was built)