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

MoveListGrouptype

A run of moves under a heading: a scramble, a solution.

Import it

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

Definition

type MoveListGroup = {
    label: string;
    items: readonly (string | MoveListItem)[];
    main?: boolean;
};

Members

NameTypeDescription
labelstring

What the run is called, shown above it and said by a screen reader.

itemsreadonly (string | MoveListItem)[]

Its moves, as codes or as items.

main (optional)boolean | undefined

The run the keys Home and End go to the ends of: the first one so marked, or else the first of all.

Examples

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


const value: MoveListGroup = { label: "Solve", items: ["R", "R'"] };
console.log(value.items);
[ 'R', "R'" ]

What it prints (run when this page was built)

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