Skip to the content

Meikyuu迷宮

Generate seeded mazes and arrow puzzles, follow numbered levels, and play on flat grids or three-dimensional surfaces.

Meikyuu is the Japanese word 迷宮 for labyrinth. About the name

Contents

Reference · Surface maze rules and geometry

solidCellsOffunction

How many cells a solid has at a size.

Import it

import { solidCellsOf } from "@johnmorrisdotca/meikyuu/3d";

Also exported from: @johnmorrisdotca/meikyuu/3d/levels, @johnmorrisdotca/meikyuu/3d/levels/dice, @johnmorrisdotca/meikyuu/3d/levels/shapes, @johnmorrisdotca/meikyuu/3d/levels/all

Definition

function solidCellsOf(kind: SolidKind, size: SolidSize): number

Parameters

NameTypeDescription
kindSolidKind

The native puzzle family or surface shape specified by this signature.

size"small" | "medium" | "large" | "huge" | "colossal"

The named level size, or numeric tall width specified by this signature.

Returns

number

How many cells a solid has at a size.

Examples

import { solidCellsOf } from "@johnmorrisdotca/meikyuu/3d";

console.log(solidCellsOf("cube","small"));
96

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/meikyuu 3.2.0.