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

NotationFaulttype

Why a line of notation could not be read, and where.

Import it

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

Definition

type NotationFault = {
    token: string;
    at: number;
    line: number;
    column: number;
    reason: "unknown" | "no-such-layer";
};

Members

NameTypeDescription
tokenstring

The piece of text that is not a move on this cube.

atnumber

Where it begins, counted in characters from 0.

linenumber

Its line, from 1.

columnnumber

Its place in that line, from 1.

reason"unknown" | "no-such-layer"

What is wrong with it: not notation at all, or a layer this cube does not have.

Examples

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


const value: NotationFault = { token: "oops", at: 0, line: 1, column: 1, reason: "unknown" };
console.log(value.reason);
unknown

What it prints (run when this page was built)

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