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

SolveParttype

A part of a step: turns to line something up, or one of the method's algorithms.

Import it

import type { SolvePart } from "@johnmorrisdotca/kyuubu";

Definition

type SolvePart = {
    moves: CubeMove[];
    algorithm?: SolveAlgorithm;
};

Members

NameTypeDescription
movesCubeMove[]
algorithm (optional)"yellowCross" | "cornerIn" | "edgeRight" | "edgeLeft" | "sune" | "cornerCycle" | "edgeCycle" | undefined

Examples

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

const value: SolvePart = { moves: parseMoves("R U", 3)! };
console.log(movesNotation(value.moves, 3));
R U

What it prints (run when this page was built)

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