本文へ移動

Kyuubuキューブ

CSS 3Dのキューブをタッチ、キー、回転記号で回します。シードでスクランブルを再現し、名前付きの手順で解き方を追えます。

「キューブ」は、英語のcubeを表す日本語の表記です。 名前について(英語)

目次

リファレンス · キューブのエンジンと表示

CUBE_OPTIONS_LEFT_OUT定数

リファレンスの説明と例は英語です。見出しと目次は日本語です。

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 { CUBE_OPTIONS_LEFT_OUT } from "@johnmorrisdotca/kyuubu";

定義

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",
}

例

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'
]

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/kyuubu 1.14.1 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。