OhHellMovetype
A bid of tricks, nought up to the cards in hand, or one card played to the trick.
Import it
import type { OhHellMove } from "@johnmorrisdotca/toranpu/oh-hell";
Definition
type OhHellMove = {
bid: number;
} | {
play: CardId;
};
Examples
import { CARD_GAME_TABLES, newGame, rulesFor } from "@johnmorrisdotca/toranpu";
import type { OhHellMove } from "@johnmorrisdotca/toranpu/oh-hell";
const names = Array.from({ length: CARD_GAME_TABLES.ohHell.defaultPlayers }, (_, seat) => `Seat ${seat + 1}`);
const game = newGame("ohHell", { players: names, seed: 42 })!;
const value: OhHellMove = rulesFor("ohHell").moves(game)[0]!;
console.log(value);{ bid: 0 }What it prints (run when this page was built)