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 · Playable boards

MeikyuuPuzzletype

What is being played.

Import it

import type { MeikyuuPuzzle } from "@johnmorrisdotca/meikyuu/play";

Definition

type MeikyuuPuzzle = {
    kind: "maze";
    recipe: MazeRecipe;
    level?: number;
} | {
    kind: "arrows";
    recipe: ArrowRecipe;
    level?: number;
} | {
    kind: "mixed";
    recipe: MixedRecipe;
    level?: number;
};

Examples

import type { MazeRecipe } from "@johnmorrisdotca/meikyuu";
import type { MeikyuuPuzzle } from "@johnmorrisdotca/meikyuu/play";

const recipe: MazeRecipe = {shape:"square",w:5,h:5,algorithm:"backtracker",mode:"to-goal",seed:42};
const value: MeikyuuPuzzle = {kind:"maze",recipe};
console.log(value);
{
  kind: 'maze',
  recipe: {
    shape: 'square',
    w: 5,
    h: 5,
    algorithm: 'backtracker',
    mode: 'to-goal',
    seed: 42
  }
}

What it prints (run when this page was built)

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