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

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

NameTypeDescription
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)

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