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

undoAllfunction

A list of moves undone, last first.

Import it

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

Definition

function undoAll(moves: readonly CubeMove[]): CubeMove[]

Parameters

NameTypeDescription
movesreadonly CubeMove[]

The turns, in their execution order.

Returns

CubeMove[]

A list of moves undone, last first.

Examples

import { movesNotation, parseMoves, undoAll } from "@johnmorrisdotca/kyuubu";

const moves = parseMoves("R U2", 3)!;
console.log(movesNotation(undoAll(moves), 3));
U2 R'

What it prints (run when this page was built)

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