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

undoOffunction

The move that takes this one back.

Import it

import { undoOf } from "@johnmorrisdotca/kyuubu";

Definition

function undoOf(move: CubeMove): CubeMove

Parameters

NameTypeDescription
moveCubeMove

The turn to apply, name or invert.

Returns

CubeMove

The move that takes this one back.

Examples

import { moveNotation, parseMove, undoOf } from "@johnmorrisdotca/kyuubu";

const move = parseMove("R", 3)!;
console.log(moveNotation(undoOf(move), 3));
R'

What it prints (run when this page was built)

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