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

levelsOffunction

Every level of a kind.

Import it

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

Definition

function levelsOf(kind: "maze"): readonly MeikyuuMazeLevel[]
function levelsOf(kind: "arrows"): readonly MeikyuuArrowLevel[]
function levelsOf(kind: "mixed"): readonly MeikyuuMixedLevel[]
function levelsOf(kind: MeikyuuKind): readonly MeikyuuLevel[]

Parameters

NameTypeDescription
kind"maze" | "arrows" | "mixed"

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

Returns

readonly MeikyuuLevel[]

Every level of a kind.

Examples

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

console.log(levelsOf("maze").length);
1024

What it prints (run when this page was built)

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