encodeMovesfunction
A list of moves written as text, one after another with nothing between.
Import it
import { encodeMoves } from "@johnmorrisdotca/toranpu/spider";
Definition
function encodeMoves(moves: readonly SpiderMove[]): string
Parameters
| Name | Type | Description |
|---|---|---|
moves | readonly SpiderMove[] | The ordered native moves to replay. |
Returns
string
A list of moves written as text, one after another with nothing between.
Examples
import { encodeMoves } from "@johnmorrisdotca/toranpu/spider";
console.log(encodeMoves([{ kind: "deal" }]));dWhat it prints (run when this page was built)