encodeMovesfunction
A list of moves written as text, one after another with nothing between.
Import it
import { encodeMoves } from "@johnmorrisdotca/toranpu/freecell";
Definition
function encodeMoves(moves: readonly FreeCellMove[]): string
Parameters
| Name | Type | Description |
|---|---|---|
moves | readonly FreeCellMove[] | 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/freecell";
console.log(encodeMoves([{ from: "1", to: "a", count: 1 }]));1aWhat it prints (run when this page was built)