Skip to the content

Toranpuトランプ

Use a deck, play eleven games with computers, solve a solitaire, or display cards in your own design.

Toranpu is Japanese for playing cards. About the name

Contents

Reference · Oh Hell

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

NameTypeDescription
gameOhHellGame

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)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/toranpu 2.15.0.