ohHellWinnersfunction
The highest score after the last deal: every seat that has it.
Import it
import { ohHellWinners } from "@johnmorrisdotca/toranpu/oh-hell";
Definition
function ohHellWinners(game: OhHellGame): number[]
Parameters
| Name | Type | Description |
|---|---|---|
game | OhHellGame | The current native game; applying a move returns a new state. |
Returns
number[]
The highest score after the last deal: every seat that has it.
Examples
import { CARD_GAME_TABLES, newGame } from "@johnmorrisdotca/toranpu";
import { ohHellWinners } 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(ohHellWinners(game));[]What it prints (run when this page was built)