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

sameCuboidfunction

Whether two cuboids are the same puzzle turned about in the hand: the same three sides in any order.

Import it

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

Definition

function sameCuboid(a: CuboidDims, b: CuboidDims): boolean

Parameters

NameTypeDescription
aCuboidDims

The first cuboid’s three dimensions.

bCuboidDims

The second cuboid’s three dimensions.

Returns

boolean

Whether two cuboids are the same puzzle turned about in the hand: the same three sides in any order.

Examples

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

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

What it prints (run when this page was built)

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