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

Scrambledtype

What the loop turns: the cube on the screen has all of it.

Import it

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

Definition

type Scrambled = {
    readonly size: number;
    readonly busy: boolean;
    turn(move: CubeMove, options?: {
        animate?: boolean;
    }): void;
};

Members

NameTypeDescription
sizenumber
busyboolean
turn(move: CubeMove, options?: { animate?: boolean; }): void

Examples

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


const value: Scrambled = { size: 3, busy: false, turn: (move) => console.log(move) };
console.log(value.size);
3

What it prints (run when this page was built)

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