Reference · Cube engine and views
wholeMovefunction
The whole cube turned in the hand, as x, y or z.
Import it
import { wholeMove } from "@johnmorrisdotca/kyuubu";
Definition
function wholeMove(letter: "x" | "y" | "z", amount: "cw" | "half" | "ccw"): CubeMove
Parameters
| Name | Type | Description |
|---|---|---|
letter | "x" | "y" | "z" | The slice letter M, E or S; whole-cube turns use x, y or z. |
amount | "cw" | "half" | "ccw" | The turn direction: cw, half or ccw. |
Returns
CubeMove
The whole cube turned in the hand, as x, y or z.
Examples
import { wholeMove } from "@johnmorrisdotca/kyuubu";
console.log(wholeMove("x", "cw"));{ axis: 0, layer: 'all', turns: 3 }What it prints (run when this page was built)