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

movesNotationfunction

Moves as a person writes them, a space between each.

Import it

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

Definition

function movesNotation(moves: readonly CubeMove[], n: number): string

Parameters

NameTypeDescription
movesreadonly CubeMove[]

The turns, in their execution order.

nnumber

The cube’s side length.

Returns

string

Moves as a person writes them, a space between each.

Examples

import { movesNotation, parseMoves } from "@johnmorrisdotca/kyuubu";

const moves = parseMoves("R U2", 3)!;
console.log(movesNotation(moves, 3));
R U2

What it prints (run when this page was built)

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