Reference · Shared Awase table
readTablefunction
WHERE THE GAME STANDS, played again from its pairs: null for a deal that is not one, or a pair the rules would not have allowed.
Import it
import { readTable } from "@johnmorrisdotca/jarajara/table";
Definition
function readTable(table: AwaseTable): AwaseTableState | null
Parameters
| Name | Type | Description |
|---|---|---|
table | AwaseTable | The shared native table and its recorded pair takes. |
Returns
AwaseTableState | null
WHERE THE GAME STANDS, played again from its pairs: null for a deal that is not one, or a pair the rules would not have allowed.
Examples
import { generateAwase } from "@johnmorrisdotca/jarajara/awase";
import { readTable, startTable } from "@johnmorrisdotca/jarajara/table";
const deal = generateAwase(4,"easy",2026);
const table = startTable(deal,[{name:"Seat 1"},{name:"Seat 2"}]);
console.log(readTable(table)?.turn);0What it prints (run when this page was built)