Reference · Rules, maps and records
writeTenkaMovefunction
A move as the short list it is kept as — and sent as, to the other devices at a table played on several.
Import it
import { writeTenkaMove } from "@johnmorrisdotca/tenka";
Definition
function writeTenkaMove(move: TenkaMove): Kept
Parameters
| Name | Type | Description |
|---|---|---|
move | TenkaMove | The native move to apply or encode. |
Returns
Kept
A move as the short list it is kept as — and sent as, to the other devices at a table played on several.
Examples
import { writeTenkaMove } from "@johnmorrisdotca/tenka";
console.log(writeTenkaMove({kind:"endTurn"}));[ 't' ]What it prints (run when this page was built)