Skip to the content

Kyuubuキューブ

Turn CSS 3D cubes by touch, keys or notation, reproduce a scramble from a seed, and follow a solve one named step at a time.

Kyuubu (キューブ) is the Japanese spelling of cube. About the name

Contents

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

NameTypeDescription
moveCubeMove

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")));
X

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kyuubu 1.14.1.