Reference · Shared Awase table
tablePairsfunction
The pairs the player to move may take: none once the game is over.
Import it
import { tablePairs } from "@johnmorrisdotca/jarajara/table";
Definition
function tablePairs(table: AwaseTable, state?: AwaseTableState | null): [number, number][]
Parameters
| Name | Type | Description |
|---|---|---|
table | AwaseTable | The shared native table and its recorded pair takes. |
state (optional) | AwaseTableState | null | A previously replayed native table state, or null to read it again. |
Returns
[number, number][]
The pairs the player to move may take: none once the game is over.
Examples
import { generateAwase } from "@johnmorrisdotca/jarajara/awase";
import { startTable, tablePairs } from "@johnmorrisdotca/jarajara/table";
const deal = generateAwase(4,"easy",2026);
const table = startTable(deal,[{name:"Seat 1"},{name:"Seat 2"}]);
console.log(tablePairs(table));[ [ 4, 7 ] ]What it prints (run when this page was built)