Reference · Cube engine and views
moveNotationfunction
A move as a person writes it, for a cube of this size.
Import it
import { moveNotation } from "@johnmorrisdotca/kyuubu";
Definition
function moveNotation(move: CubeMove, n: number): string
Parameters
| Name | Type | Description |
|---|---|---|
move | CubeMove | The turn to apply, name or invert. |
n | number | The cube’s side length. |
Returns
string
A move as a person writes it, for a cube of this size.
Examples
import { moveNotation, parseMove } from "@johnmorrisdotca/kyuubu";
const move = parseMove("R", 3)!;
console.log(moveNotation(move, 3));RWhat it prints (run when this page was built)