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

countsAsMovefunction

Whether a move counts towards a solve's moves: a turn of the whole cube in the hand does not.

Import it

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

Definition

function countsAsMove(move: CubeMove): boolean

Parameters

NameTypeDescription
moveCubeMove

The turn to apply, name or invert.

Returns

boolean

Whether a move counts towards a solve's moves: a turn of the whole cube in the hand does not.

Examples

import { countsAsMove, parseMove } from "@johnmorrisdotca/kyuubu";

const move = parseMove("R", 3)!;
console.log(countsAsMove(move));
true

What it prints (run when this page was built)

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