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

CuboidFacetype

One face of a cuboid: how many columns and rows of stickers it has as it is seen from outside, and where its stickers begin in the state.

Import it

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

Definition

type CuboidFace = {
    face: CubeFace;
    cols: number;
    rows: number;
    start: number;
};

Members

NameTypeDescription
face"U" | "R" | "F" | "D" | "L" | "B"
colsnumber
rowsnumber
startnumber

Examples

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

const value: CuboidFace = cuboidFaces([2, 3, 3])[0]!;
console.log(value.face);
U

What it prints (run when this page was built)

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