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 · Tall maze levels

MeikyuuTallLeveltype

THE TALL LEVELS: portrait mazes for a phone held upright, 1,536 of them in six sizes of 256, each size in order of the score difficultyOf gives, so no level is easier than the one before inside its size. A level is a recipe, such as square:10x15:wilson:to-goal:48213, narrower than it is tall, two columns to three rows; squares, hexagons and triangles are laid out to fill a container of that shape with about the same number of cells (tallDimensions). The recipe is the upright maze whatever screen it is played on: a wide screen turns the drawing, and a line drawn on it is the same line (orientation in mountMeikyuu).

This is a list of its own, in an entry of its own (@johnmorrisdotca/meikyuu/levels/tall), so a page that plays only the square mazes does not carry it. Play one with mountMeikyuu(host, { recipe: level.code, ratio: level.ratio }).

Import it

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

Definition

type MeikyuuTallLevel = {
    readonly kind: "maze";
    readonly list: "tall";
    readonly number: number;
    readonly size: number;
    readonly width: number;
    readonly inSize: number;
    readonly code: string;
    readonly recipe: MazeRecipe;
    readonly cells: number;
    readonly effort: number;
    readonly rating: number;
    readonly score: number;
    readonly ratio: number;
};

Members

NameTypeDescription
kind"maze"
list"tall"
numbernumber

Its place in the whole tall list, from 1.

sizenumber

The size, from 1 (the smallest) to 6.

widthnumber

How many cells across a square maze of its size is (6, 8, 10, 12, 16 or 20).

inSizenumber

Its place among the levels of its size, from 1.

codestring
recipeMazeRecipe
cellsnumber
effortnumber
ratingnumber
scorenumber

How hard it is to play, from 0 to 100 (see difficultyOf).

rationumber

The container's width over its height, for the board's ratio option.

Examples

import type { MeikyuuTallLevel } from "@johnmorrisdotca/meikyuu/levels/tall";
import { tallLevelOf } from "@johnmorrisdotca/meikyuu/levels/tall";

const value: MeikyuuTallLevel = tallLevelOf(1)!;
console.log(value);
{
  kind: 'maze',
  list: 'tall',
  number: 1,
  size: 1,
  width: 6,
  inSize: 1,
  code: 'triangle:7x7:kruskal:centre-out:1477605004',
  recipe: {
    shape: 'triangle',
    w: 7,
    h: 7,
    algorithm: 'kruskal',
    mode: 'centre-out',
    seed: 1477605004
  },
  cells: 49,
  effort: 47,
  rating: 27,
  score: 20,
  ratio: 0.6666666666666666
}

What it prints (run when this page was built)

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