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

moveNamefunction

What a move turns, in a few plain words, in English or Japanese; null for anything that is not a move in standard form.

Import it

import { moveName } from "@johnmorrisdotca/kyuubu";

Definition

function moveName(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 turns, in a few plain words, in English or Japanese; null for anything that is not a move in standard form.

Examples

import { moveName } from "@johnmorrisdotca/kyuubu";

console.log(moveName("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.