Reference · Rules, maps and records
tenkaOverfunction
Whether the game is over.
Import it
import { tenkaOver } from "@johnmorrisdotca/tenka";
Definition
function tenkaOver(game: TenkaGame): boolean
Parameters
| Name | Type | Description |
|---|---|---|
game | TenkaGame | The current native game state. |
Returns
boolean
Whether the game is over.
Examples
import { startTenka, tenkaOver } from "@johnmorrisdotca/tenka";
const game = startTenka(10,["Seat 1","Seat 2"],42)!;
console.log(tenkaOver(game));falseWhat it prints (run when this page was built)