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
| Name | Type | Description |
|---|---|---|
en | CuboidWords | |
ja | CuboidWords |
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)