Reference · Shared Awase table
decodeTablefunction
A kept table read back, its shape checked and every pair played again; null for anything that is not one.
Import it
import { decodeTable } from "@johnmorrisdotca/jarajara/table";
Definition
function decodeTable(text: string | null): AwaseTable | null
Parameters
| Name | Type | Description |
|---|---|---|
text | string | null | The unknown text or encoded record to interpret. |
Returns
AwaseTable | null
A kept table read back, its shape checked and every pair played again; null for anything that is not one.
Examples
import { generateAwase } from "@johnmorrisdotca/jarajara/awase";
import { decodeTable, encodeTable, startTable } from "@johnmorrisdotca/jarajara/table";
const deal = generateAwase(4,"easy",2026);
const table = startTable(deal,[{name:"Seat 1"},{name:"Seat 2"}]);
console.log(decodeTable(encodeTable(table))?.seed);2026What it prints (run when this page was built)