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

algorithmNamefunction

The name of one of the method's algorithms, as a person would say it: "Three corners round", 「コーナーの三点交換」.

Import it

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

Definition

function algorithmName(algorithm: SolveAlgorithm, language?: KyuubuLanguage): string

Parameters

NameTypeDescription
algorithm"yellowCross" | "cornerIn" | "edgeRight" | "edgeLeft" | "sune" | "cornerCycle" | "edgeCycle"

The named solving algorithm.

language (optional)KyuubuLanguage

English or Japanese for the displayed words.

Returns

string

The name of one of the method's algorithms, as a person would say it: "Three corners round", 「コーナーの三点交換」.

Examples

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

console.log(algorithmName("sune", "en"));
Sune

What it prints (run when this page was built)

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