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 · Numbered puzzle levels

sizeOffunction

How big a maze is, in words a person picks by: under 150 cells is small, under 800 medium, under 4,000 large, and the rest huge.

Import it

import { sizeOf } from "@johnmorrisdotca/meikyuu/levels";

Definition

function sizeOf(cells: number): MeikyuuSize

Parameters

NameTypeDescription
cellsnumber

A cell-index path or total count specified by this signature.

Returns

"small" | "medium" | "large" | "huge"

How big a maze is, in words a person picks by: under 150 cells is small, under 800 medium, under 4,000 large, and the rest huge.

Examples

import { sizeOf } from "@johnmorrisdotca/meikyuu/levels";

console.log(sizeOf(100));
small

What it prints (run when this page was built)

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