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

solidCutOffunction

The cut of a solid at a size.

Import it

import { solidCutOf } 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 solidCutOf(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

The cut of a solid at a size.

Examples

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

console.log(solidCutOf("cube","small"));
4

What it prints (run when this page was built)

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