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

CuboidWordstype

THE CUBOID'S OWN WORDS, in English and Japanese: what a screen reader calls it and what is said when a move cannot be made. The player's controls say what the cube's do (WORDS in words.ts). {braces} are filled in when a line is shown; a table in another language keeps them.

Import it

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

Definition

type CuboidWords = {
    cuboidLabel: string;
    faultUnknown: string;
    faultNoSuchLayer: string;
    faultHalfTurnOnly: string;
    faultWholePuzzle: string;
    faultDims: string;
    faultLength: string;
};

Members

NameTypeDescription
cuboidLabelstring

What a screen reader calls a cuboid: {dims} is 2×3×3.

faultUnknownstring

A piece of notation that is not notation. {token} is the piece.

faultNoSuchLayerstring

A layer the cuboid does not have.

faultHalfTurnOnlystring

A quarter turn of a layer that only half turns; {half} is the half turn to write instead.

faultWholePuzzlestring

The one layer of a side one cubie deep.

faultDimsstring

A cuboid that is not one the package makes.

faultLengthstring

A solve too long to play.

Examples

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

const value: CuboidWords = CUBOID_WORDS.en;
console.log(value.cuboidLabel);
A {dims} cuboid

What it prints (run when this page was built)

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