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

readCuboidMovefunction

One piece of notation read for this cuboid: R, R', R2, 2R', M2.

Import it

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

Definition

function readCuboidMove(text: string, dims: CuboidDims): CuboidReading

Parameters

NameTypeDescription
textstring

The text to parse or format.

dimsCuboidDims

The cuboid’s x, y and z dimensions, in that order.

Returns

CuboidReading

One piece of notation read for this cuboid: R, R', R2, 2R', M2.

Examples

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

const dims = [2, 3, 3] as const;
console.log(readCuboidMove("U", dims));
{ fault: 'half-turn-only' }

What it prints (run when this page was built)

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