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

CubeWordstype

THE WORDS THE CUBE ITSELF SAYS, in English and Japanese: what a screen reader calls it, whether it is solved, the names of the steps of a solve and what each is for, and the names of the method's algorithms. They are kept apart from the command line's words (strings.ts), so that a page that only draws a cube carries only these.

{n} and the other braces are filled in when a line is shown; a table in another language must keep them.

Import it

import type { CubeWords } from "@johnmorrisdotca/kyuubu";

Definition

type CubeWords = {
    cubeLabel: string;
    solved: string;
    notSolved: string;
    stageHold: string;
    stageWhiteCross: string;
    stageWhiteCorners: string;
    stageWhiteLayer: string;
    stageMiddleLayer: string;
    stageYellowCross: string;
    stageYellowFace: string;
    stageYellowCorners: string;
    stageYellowEdges: string;
    saysHold: string;
    saysWhiteCross: string;
    saysWhiteCorners: string;
    saysWhiteLayer: string;
    saysMiddleLayer: string;
    saysYellowCross: string;
    saysYellowFace: string;
    saysYellowCorners: string;
    saysYellowEdges: string;
    algCornerIn: string;
    algEdgeRight: string;
    algEdgeLeft: string;
    algYellowCross: string;
    algSune: string;
    algCornerCycle: string;
    algEdgeCycle: string;
    playerPlay: string;
    playerPause: string;
    playerBack: string;
    playerOn: string;
    playerAgain: string;
    playerLoop: string;
    playerSpeed: string;
    playerOwnPace: string;
    playerMoveOf: string;
    playerScrub: string;
    playerUnsolved: string;
    playerCannotRead: string;
    playerNoSuchLayer: string;
    playerTooLong: string;
    playerEvenPace: string;
    playerCredit: string;
    guideSideR: string;
    guideSideL: string;
    guideSideU: string;
    guideSideD: string;
    guideSideF: string;
    guideSideB: string;
    guideFace: string;
    guideInner: string;
    guideWide: string;
    guideMiddleM: string;
    guideMiddleE: string;
    guideMiddleS: string;
    guideTowards: string;
    guideAway: string;
    guideToRight: string;
    guideToLeft: string;
    guideClockwise: string;
    guideAnticlockwise: string;
    guideTurn: string;
    guideHalf: string;
    guideWholeX: string;
    guideWholeXPrime: string;
    guideWholeX2: string;
    guideWholeY: string;
    guideWholeYPrime: string;
    guideWholeY2: string;
    guideWholeZ: string;
    guideWholeZPrime: string;
    guideWholeZ2: string;
    guideDrag: string;
    guideDragHalf: string;
    guideDragSlab: string;
    guideDragSeam: string;
    guideLook: string;
    guideWholeHow: string;
    guideOff: string;
    guideOffHow: string;
    guideTakeBack: string;
    guideDoIt: string;
    guideDone: string;
    guideLabel: string;
    playerFollow: string;
    playerMovesLabel: string;
    playerScrambleLabel: string;
    playerSolutionLabel: string;
    playerScrambleOf: string;
    playerBeforeScramble: string;
    playerHeard: string;
    playerToken: string;
    moveFace: string;
    moveLayers: string;
    moveLayer: string;
    moveSliceM: string;
    moveSliceE: string;
    moveSliceS: string;
    moveSliceWay: string;
    moveWhole: string;
    moveSays: string;
    moveCw: string;
    moveCcw: string;
    moveTwice: string;
    moveCount2: string;
    moveCount3: string;
    moveCount4: string;
    moveCount5: string;
    moveCount6: string;
};

Members

NameTypeDescription
cubeLabelstring
solvedstring
notSolvedstring
stageHoldstring
stageWhiteCrossstring
stageWhiteCornersstring
stageWhiteLayerstring
stageMiddleLayerstring
stageYellowCrossstring
stageYellowFacestring
stageYellowCornersstring
stageYellowEdgesstring
saysHoldstring
saysWhiteCrossstring
saysWhiteCornersstring
saysWhiteLayerstring
saysMiddleLayerstring
saysYellowCrossstring
saysYellowFacestring
saysYellowCornersstring
saysYellowEdgesstring
algCornerInstring
algEdgeRightstring
algEdgeLeftstring
algYellowCrossstring
algSunestring
algCornerCyclestring
algEdgeCyclestring
playerPlaystring
playerPausestring
playerBackstring
playerOnstring
playerAgainstring
playerLoopstring
playerSpeedstring
playerOwnPacestring
playerMoveOfstring
playerScrubstring
playerUnsolvedstring
playerCannotReadstring
playerNoSuchLayerstring
playerTooLongstring
playerEvenPacestring
playerCreditstring
guideSideRstring
guideSideLstring
guideSideUstring
guideSideDstring
guideSideFstring
guideSideBstring
guideFacestring
guideInnerstring
guideWidestring
guideMiddleMstring
guideMiddleEstring
guideMiddleSstring
guideTowardsstring
guideAwaystring
guideToRightstring
guideToLeftstring
guideClockwisestring
guideAnticlockwisestring
guideTurnstring
guideHalfstring
guideWholeXstring
guideWholeXPrimestring
guideWholeX2string
guideWholeYstring
guideWholeYPrimestring
guideWholeY2string
guideWholeZstring
guideWholeZPrimestring
guideWholeZ2string
guideDragstring
guideDragHalfstring
guideDragSlabstring
guideDragSeamstring
guideLookstring
guideWholeHowstring
guideOffstring
guideOffHowstring
guideTakeBackstring
guideDoItstring
guideDonestring
guideLabelstring
playerFollowstring
playerMovesLabelstring
playerScrambleLabelstring
playerSolutionLabelstring
playerScrambleOfstring
playerBeforeScramblestring
playerHeardstring
playerTokenstring
moveFacestring
moveLayersstring
moveLayerstring
moveSliceMstring
moveSliceEstring
moveSliceSstring
moveSliceWaystring
moveWholestring
moveSaysstring
moveCwstring
moveCcwstring
moveTwicestring
moveCount2string
moveCount3string
moveCount4string
moveCount5string
moveCount6string

Examples

import type { CubeWords } from "@johnmorrisdotca/kyuubu";
import { WORDS } from "@johnmorrisdotca/kyuubu";

const value: CubeWords = WORDS.en;
console.log(value.solved);
Solved

What it prints (run when this page was built)

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