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

MEIKYUU_ORIENTATIONSconstant

WHICH WAY UP A MAZE IS LOOKED AT. A tall maze is made to be played upright on a phone and wants to lie down on a wide screen; a wide one the other way. Turning is presentation only: the maze, its cells and the line drawn through them stay as they were made (the logical orientation), and the board draws them a quarter turn counter-clockwise, so the maze's top is on the left, its left at the foot, and a finger's path over the picture is carried back into the maze before anything is decided. A line stored as its steps (lineToSteps) therefore replays the same on a board turned either way, which is what lets a person start a level on a phone and finish it on a desk.

The turn is a quarter turn counter-clockwise: the logical point (x, y) is shown at (y, -x), a rotation of -90 degrees in SVG's terms.

Import it

import { MEIKYUU_ORIENTATIONS } from "@johnmorrisdotca/meikyuu/play";

Also exported from: @johnmorrisdotca/meikyuu

Definition

const MEIKYUU_ORIENTATIONS: readonly ["portrait", "landscape", "auto"] = ["portrait", "landscape", "auto"] as const

Examples

import { MEIKYUU_ORIENTATIONS } from "@johnmorrisdotca/meikyuu/play";
console.log(MEIKYUU_ORIENTATIONS);
[ 'portrait', 'landscape', 'auto' ]

What it prints (run when this page was built)

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