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 · Cuboid engine

CuboidReadingtype

What reading one piece of notation gives: the move, or why it is not one.

Import it

import type { CuboidReading } from "@johnmorrisdotca/kyuubu/cuboid";

Definition

type CuboidReading = {
    move: CuboidMove;
} | {
    fault: CuboidFault;
};

Examples

import type { CuboidReading } from "@johnmorrisdotca/kyuubu/cuboid";
import { readCuboidMove } from "@johnmorrisdotca/kyuubu/cuboid";

const value: CuboidReading = readCuboidMove("U", [2, 3, 3]);
console.log(value);
{ fault: 'half-turn-only' }

What it prints (run when this page was built)

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