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

mazeLevelOfSizefunction

Level n (from 1) of a size, or null when there is none.

Import it

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

Definition

function mazeLevelOfSize(size: MeikyuuSize, n: number): MeikyuuMazeLevel | null

Parameters

NameTypeDescription
size"small" | "medium" | "large" | "huge"

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

nnumber

The level number, random bound or surface subdivision specified by the signature.

Returns

MeikyuuMazeLevel | null

Level n (from 1) of a size, or null when there is none.

Examples

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

console.log(mazeLevelOfSize("small",1)?.code);
square:3x5:prim:to-goal:1538214105

What it prints (run when this page was built)

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