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

SolveReadingtype

What reading a solve gives: its steps, or the first thing that could not be read.

Import it

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

Definition

type SolveReading = {
    ok: true;
    steps: SolveMove[];
} | {
    ok: false;
    steps: SolveMove[];
    fault: NotationFault;
};

Examples

import type { SolveReading } from "@johnmorrisdotca/kyuubu";
import { parseSolve } from "@johnmorrisdotca/kyuubu";

const value: SolveReading = parseSolve("R U", 3);
console.log(value.ok);
true

What it prints (run when this page was built)

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