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

MeikyuuLeveltype

One native numbered maze, arrow or mixed level.

Import it

import type { MeikyuuLevel } from "@johnmorrisdotca/meikyuu/levels";

Definition

type MeikyuuLevel = MeikyuuMazeLevel | MeikyuuArrowLevel | MeikyuuMixedLevel;

Examples

import type { MeikyuuLevel } from "@johnmorrisdotca/meikyuu/levels";
import { levelOf } from "@johnmorrisdotca/meikyuu/levels";

const value: MeikyuuLevel = levelOf("maze",1)!;
console.log(value);
{
  kind: 'maze',
  number: 1,
  code: 'square:3x5:prim:to-goal:1538214105',
  effort: 22,
  rating: 15,
  score: 13,
  cells: 15,
  size: 'small',
  inSize: 1,
  recipe: {
    shape: 'square',
    w: 3,
    h: 5,
    algorithm: 'prim',
    mode: 'to-goal',
    seed: 1538214105
  }
}

What it prints (run when this page was built)

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