Reference · Game engine and table
readTableSetUpfunction
The set-up as a device sent it, checked for its shape, jumping in taken off, or null.
Import it
import { readTableSetUp } from "@johnmorrisdotca/hitotsu";
Definition
function readTableSetUp(sent: unknown): HitotsuTableSetUp | null
Parameters
| Name | Type | Description |
|---|---|---|
sent | unknown | Untrusted setup or move data received from a device. |
Returns
HitotsuTableSetUp | null
The set-up as a device sent it, checked for its shape, jumping in taken off, or null.
Examples
import { HITOTSU_PARTY, readTableSetUp } from "@johnmorrisdotca/hitotsu";
console.log(readTableSetUp({ seed: 42, options: HITOTSU_PARTY }));{
seed: 42,
options: {
stacking: 'any',
jumpIn: false,
sevenZero: true,
drawToMatch: false,
wildFour: 'challenge',
deal: 5
}
}What it prints (run when this page was built)