ohHellBidsfunction
The bids open to the seat to bid: nought to the cards in hand, less the one a dealer may not make.
Import it
import { ohHellBids } from "@johnmorrisdotca/toranpu/oh-hell";
Definition
function ohHellBids(game: OhHellGame): number[]
Parameters
| Name | Type | Description |
|---|---|---|
game | OhHellGame | The current native game; applying a move returns a new state. |
Returns
number[]
The bids open to the seat to bid: nought to the cards in hand, less the one a dealer may not make.
Examples
import { CARD_GAME_TABLES, newGame } from "@johnmorrisdotca/toranpu";
import { ohHellBids } from "@johnmorrisdotca/toranpu/oh-hell";
const names = Array.from({ length: CARD_GAME_TABLES.ohHell.defaultPlayers }, (_, seat) => `Seat ${seat + 1}`);
let game = newGame("ohHell", { players: names, seed: 42 })!;
console.log(ohHellBids(game));[ 0, 1 ]What it prints (run when this page was built)