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

solveMovesfunction

Every layer a list of steps turns, in order: what turnAll takes.

Import it

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

Definition

function solveMoves(steps: readonly SolveMove[]): CubeMove[]

Parameters

NameTypeDescription
stepsreadonly SolveMove[]

The ordered steps of the solve.

Returns

CubeMove[]

Every layer a list of steps turns, in order: what turnAll takes.

Examples

import { parseSolve, solveMoves } from "@johnmorrisdotca/kyuubu";

const reading = parseSolve("R U", 3);
const steps = reading.steps;
console.log(solveMoves(steps));
[ { axis: 0, layer: 2, turns: 3 }, { axis: 1, layer: 2, turns: 3 } ]

What it prints (run when this page was built)

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