Reference · Game engine and table
readTableMovefunction
A move as a device sent it, checked for its shape, or null; a jump is never a move at a table on several devices.
Import it
import { readTableMove } from "@johnmorrisdotca/hitotsu";
Definition
function readTableMove(sent: unknown): HitotsuMove | null
Parameters
| Name | Type | Description |
|---|---|---|
sent | unknown | Untrusted setup or move data received from a device. |
Returns
HitotsuMove | null
A structurally valid shared-table move, or null for invalid data or a jump-in move.
Examples
import { readTableMove } from "@johnmorrisdotca/hitotsu";
console.log(readTableMove({ draw: true }));{ draw: true }What it prints (run when this page was built)