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

CUBE_OPTIONS_LEFT_OUTconstant

What is not a choice, by the way of making a cube that has it and its name there, each with why: a function, a value that is itself the state, a list that needs a program to write. A name is in this list or in CUBE_OPTIONS, or test/options.test.ts fails.

Import it

import { CUBE_OPTIONS_LEFT_OUT } from "@johnmorrisdotca/kyuubu";

Definition

const CUBE_OPTIONS_LEFT_OUT: Readonly<Record<string, string>> = {
    "view.state": "the stickers themselves: a state is the cube's, and is made by turning it",
    "view.onTurn": "a function the page gives, told of every turn a person makes",
    "view.onLook": "a function the page gives, told whenever the view turns",
    "view.colours": "six options of its own, one for each face (`colour-up` and the rest)",
    "cuboid.state": "the stickers themselves: a state is the puzzle's, and is made by turning it",
    "cuboid.onTurn": "a function the page gives, told of every turn a person makes",
    "cuboid.onLook": "a function the page gives, told whenever the view turns",
    "cuboid.colours": "six options of its own, one for each face (`colour-up` and the rest)",
    "cuboidPlayer.stepMs": "a time for each step: a list of numbers that only a program has",
    "cuboidPlayer.onChange": "a function the page gives, told after every step",
    "cuboidPlayer.onEnd": "a function the page gives, told at the end",
    "player.stepMs": "a time for each step: a list of numbers that only a program has",
    "player.onChange": "a function the page gives, told after every step",
    "player.onEnd": "a function the page gives, told at the end",
}

Examples

import { CUBE_OPTIONS_LEFT_OUT } from "@johnmorrisdotca/kyuubu";

console.log(Object.keys(CUBE_OPTIONS_LEFT_OUT).slice(0, 8));
[
  'view.state',
  'view.onTurn',
  'view.onLook',
  'view.colours',
  'cuboid.state',
  'cuboid.onTurn',
  'cuboid.onLook',
  'cuboid.colours'
]

What it prints (run when this page was built)

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