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 · Mazes, arrows and mixed boards

MEIKYUU_LEASTconstant

The least a maze must have to be a level at all, wherever it is in a list (isTooEasy): the straight guess draws at least four cells it did not need, is wrong at two forks or more, and the way has three places to choose, three wrong branches and four dead ends. Below any of these a maze is pointed at the goal and walked.

Import it

import { MEIKYUU_LEAST } from "@johnmorrisdotca/meikyuu";

Definition

const MEIKYUU_LEAST: { readonly waste: 4; readonly traps: 2; readonly decisions: 3; readonly branches: 3; readonly deadEnds: 4; } = { waste: 4, traps: 2, decisions: 3, branches: 3, deadEnds: 4 } as const

Members

NameTypeDescription
waste4
traps2
decisions3
branches3
deadEnds4

Examples

import { MEIKYUU_LEAST } from "@johnmorrisdotca/meikyuu";
console.log(MEIKYUU_LEAST);
{ waste: 4, traps: 2, decisions: 3, branches: 3, deadEnds: 4 }

What it prints (run when this page was built)

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