Reference · Game engine and table
tableToPlayfunction
The seat the table waits on, or null once the game is over.
Import it
import { tableToPlay } from "@johnmorrisdotca/hitotsu";
Definition
function tableToPlay(game: HitotsuGame): number | null
Parameters
| Name | Type | Description |
|---|---|---|
game | HitotsuGame | The current native game; it is left unchanged. |
Returns
number | null
The seat the table waits on, or null once the game is over.
Examples
import { HITOTSU_CLASSIC, startHitotsu, tableToPlay } from "@johnmorrisdotca/hitotsu";
const game = startHitotsu(1, ["Aki", "Ben"], 42, HITOTSU_CLASSIC, [true, true])!;
console.log(tableToPlay(game));0What it prints (run when this page was built)