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

CuboidKeyReadingtype

What a key means on a cuboid: a turn, a depth for the next face letter, or nothing.

Import it

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

Definition

type CuboidKeyReading = {
    move: CuboidMove;
} | {
    depth: number;
} | null;

Examples

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

const value: CuboidKeyReading = readCuboidKey("u", false, [2, 3, 3], 1);
console.log(value);
{ move: { axis: 1, layer: 2, turns: 2 } }

What it prints (run when this page was built)

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