Reference · Cube engine and views
undoOffunction
The move that takes this one back.
Import it
import { undoOf } from "@johnmorrisdotca/kyuubu";
Definition
function undoOf(move: CubeMove): CubeMove
Parameters
| Name | Type | Description |
|---|---|---|
move | CubeMove | The turn to apply, name or invert. |
Returns
CubeMove
The move that takes this one back.
Examples
import { moveNotation, parseMove, undoOf } from "@johnmorrisdotca/kyuubu";
const move = parseMove("R", 3)!;
console.log(moveNotation(undoOf(move), 3));R'What it prints (run when this page was built)