Reference · Cube engine and views
rotationKeysfunction
The key or keys that make a turn of the whole cube: X, Shift+X, X X.
Import it
import { rotationKeys } from "@johnmorrisdotca/kyuubu";
Definition
function rotationKeys(move: CubeMove): string
Parameters
| Name | Type | Description |
|---|---|---|
move | CubeMove | The turn to apply, name or invert. |
Returns
string
The key or keys that make a turn of the whole cube: X, Shift+X, X X.
Examples
import { rotationKeys, wholeMove } from "@johnmorrisdotca/kyuubu";
console.log(rotationKeys(wholeMove("x", "cw")));XWhat it prints (run when this page was built)