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

SOLID_ALGORITHMSconstant

The algorithms that make a maze over a solid: all but Eller's, which needs rows.

Import it

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

Definition

const SOLID_ALGORITHMS: ("backtracker" | "hunt" | "growing" | "prim" | "kruskal" | "wilson")[] = MEIKYUU_ALGORITHMS.filter((algorithm): algorithm is Exclude<MeikyuuAlgorithm, "eller"> => algorithm !== "eller")

Examples

import { SOLID_ALGORITHMS } from "@johnmorrisdotca/meikyuu/3d";
console.log(SOLID_ALGORITHMS);
[ 'backtracker', 'hunt', 'growing', 'prim', 'kruskal', 'wilson' ]

What it prints (run when this page was built)

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