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)