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 · Original numbered levels

MEIKYUU_LEGACY_MAZE_LEVELSconstant

The original published flat-maze numbering, its recipes and mappings to current collections.

Import it

import { MEIKYUU_LEGACY_MAZE_LEVELS } from "@johnmorrisdotca/meikyuu/levels/legacy";

Definition

const MEIKYUU_LEGACY_MAZE_LEVELS: readonly LegacyMazeLevel[] = MEIKYUU_LEGACY_MAZE_ROWS.map(([code, effort, cells, score], index) => {
    const now = byCode.get(code) ?? null;
    const size = sizeOf(cells);
    const place = (placed.get(size) ?? 0) + 1;
    placed.set(size, place);
    const nearest = now?.number ?? nearestInSize(size, score);
    return { number: index + 1, code, effort, cells, score, size, place, now: now?.number ?? null, nowInSize: now?.inSize ?? null, nearest };
})

Examples

import { MEIKYUU_LEGACY_MAZE_LEVELS } from "@johnmorrisdotca/meikyuu/levels/legacy";
console.log(MEIKYUU_LEGACY_MAZE_LEVELS.length);
1000

What it prints (run when this page was built)

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