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

isCuboidDimsfunction

Whether this is a cuboid the package makes: three whole numbers from 1 to 7, and not 1×1×1, which has nothing to turn.

Import it

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

Definition

function isCuboidDims(dims: unknown): dims is CuboidDims

Parameters

NameTypeDescription
dimsunknown

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

Returns

boolean

Whether this is a cuboid the package makes: three whole numbers from 1 to 7, and not 1×1×1, which has nothing to turn.

Examples

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

console.log(isCuboidDims([2, 3, 3]));
true

What it prints (run when this page was built)

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