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

MeikyuuMixedLeveltype

A numbered mixed-puzzle recipe and its native difficulty metadata.

Import it

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

Definition

type MeikyuuMixedLevel = Base & {
    readonly kind: "mixed";
    readonly recipe: MixedRecipe;
};

Members

NameTypeDescription
numbernumber

Its place in its own list, from 1.

codestring

The recipe as one short word.

effortnumber

What it measures (see measureMaze, measureArrows, measureMixed).

ratingnumber

The effort as a rating from 1 to 100 on the scale of the maze list.

kind"mixed"
recipeMixedRecipe

Examples

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

const value: MeikyuuMixedLevel = levelOf("mixed",1)!;
console.log(value);
{
  kind: 'mixed',
  number: 1,
  code: 'cross:7:4:9675:1|square:5x5:kruskal:to-goal:126',
  effort: 41,
  rating: 10,
  recipe: {
    arrows: { shape: 'cross', w: 7, h: 7, longest: 4, seed: 9675, locks: 1 },
    maze: {
      shape: 'square',
      w: 5,
      h: 5,
      algorithm: 'kruskal',
      mode: 'to-goal',
      seed: 126
    }
  }
}

What it prints (run when this page was built)

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