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 · Cuboid engine

CUBOID_WORDSconstant

The cuboid's words in both languages.

Import it

import { CUBOID_WORDS } from "@johnmorrisdotca/kyuubu/cuboid";

Definition

const CUBOID_WORDS: Readonly<Record<KyuubuLanguage, CuboidWords>> = {
    en: {
        cuboidLabel: "A {dims} cuboid",
        faultUnknown: "“{token}” is not a move.",
        faultNoSuchLayer: "“{token}” turns a layer this cuboid does not have.",
        faultHalfTurnOnly: "“{token}” would be a quarter turn, and that layer is not square, so it only makes half turns. Write “{half}”.",
        faultWholePuzzle: "“{token}” is a side one cubie deep, which is the whole puzzle: turning it moves nothing.",
        faultDims: "That is not a cuboid: each side is a whole number from 1 to 7.",
        faultLength: "That is too long to play.",
    },
    ja: {
        cuboidLabel: "{dims}の直方体パズル",
        faultUnknown: "「{token}」は回転記号ではありません。",
        faultNoSuchLayer: "「{token}」はこの直方体にない層を回します。",
        faultHalfTurnOnly: "「{token}」は1/4回転ですが、その層は正方形ではないので半回転しかできません。「{half}」と書いてください。",
        faultWholePuzzle: "「{token}」は奥行きが1つだけの辺で、パズル全体です。回しても何も動きません。",
        faultDims: "直方体ではありません。各辺は1から7までの整数です。",
        faultLength: "長すぎて再生できません。",
    },
}

Members

NameTypeDescription
enCuboidWords
jaCuboidWords

Examples

import { CUBOID_WORDS } from "@johnmorrisdotca/kyuubu/cuboid";

console.log(Object.keys(CUBOID_WORDS.en).slice(0, 5));
[
  'cuboidLabel',
  'faultUnknown',
  'faultNoSuchLayer',
  'faultHalfTurnOnly',
  'faultWholePuzzle'
]

What it prints (run when this page was built)

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