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

findMazeLevelsfunction

The levels of a kind that pass a filter, with their numbers: by shape, by way to play and by size, each when given.

Import it

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

Definition

function findMazeLevels(filter?: { shape?: MazeRecipe["shape"]; mode?: MazeRecipe["mode"]; size?: MeikyuuSize; }): MeikyuuMazeLevel[]

Parameters

NameTypeDescription
filter (optional){ shape?: MazeRecipe["shape"]; mode?: MazeRecipe["mode"]; size?: MeikyuuSize; }

Optional native shape, mode, size or collection filters.

Returns

MeikyuuMazeLevel[]

The levels of a kind that pass a filter, with their numbers: by shape, by way to play and by size, each when given.

Examples

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

console.log(findMazeLevels({shape:"square",size:"small"}).length);
50

What it prints (run when this page was built)

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