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

faultSaysfunction

The line that says why a piece of notation is not a move on a cuboid.

Import it

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

Definition

function faultSays(fault: CuboidFault, token: string, language?: KyuubuLanguage): string

Parameters

NameTypeDescription
faultCuboidFault

The reason the cuboid notation was refused.

tokenstring

The notation token being read or described.

language (optional)KyuubuLanguage

English or Japanese for the displayed words.

Returns

string

The line that says why a piece of notation is not a move on a cuboid.

Examples

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

console.log(faultSays("half-turn-only", "U", "en"));
“U” would be a quarter turn, and that layer is not square, so it only makes half turns. Write “U2”.

What it prints (run when this page was built)

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