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

cuboidMoveNamefunction

What a move of a cuboid turns, in a few plain words, in English or Japanese: R2 is "Right face, twice", 2U2 "Up layer 2, twice", M2 "Middle slice, twice". It reads what cuboidMoveNotation writes (a face, a digit and a face, M, E or S, then nothing, ' or 2); null for anything else, and for the cube's wide turns and rotations, which a cuboid has none of.

Import it

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

Definition

function cuboidMoveName(code: string, language?: KyuubuLanguage): string | null

Parameters

NameTypeDescription
codestring

The encoded moves or standard notation to read.

language (optional)KyuubuLanguage

English or Japanese for the displayed words.

Returns

string | null

What a move of a cuboid turns, in a few plain words, in English or Japanese: R2 is "Right face, twice", 2U2 "Up layer 2, twice", M2 "Middle slice, twice". It reads what cuboidMoveNotation writes (a face, a digit and a face, M, E or S, then nothing, ' or 2); null for anything else, and for the cube's wide turns and rotations, which a cuboid has none of.

Examples

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

console.log(cuboidMoveName("R2", "en"));
Right face, twice

What it prints (run when this page was built)

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