Reference · Cube engine and views
solveTextfunction
The steps written out in standard form, a space between each.
Import it
import { solveText } from "@johnmorrisdotca/kyuubu";
Definition
function solveText(steps: readonly SolveMove[]): string
Parameters
| Name | Type | Description |
|---|---|---|
steps | readonly SolveMove[] | The ordered steps of the solve. |
Returns
string
The steps written out in standard form, a space between each.
Examples
import { parseSolve, solveText } from "@johnmorrisdotca/kyuubu";
const reading = parseSolve("R U", 3);
const steps = reading.steps;
console.log(solveText(steps));R UWhat it prints (run when this page was built)