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 · Mazes, arrows and mixed boards

Masktype

THE OUTLINES cut out of a square raster: a function from a point of the square (both numbers from -1 to 1, y down) to whether that point is inside the shape. A maze takes the cells whose middles are inside, and the biggest piece of them that touch.

Import it

import type { Mask } from "@johnmorrisdotca/meikyuu";

Definition

type Mask = (u: number, v: number) => boolean;

Examples

import type { Mask } from "@johnmorrisdotca/meikyuu";
import { maskOf } from "@johnmorrisdotca/meikyuu";

const value: Mask = maskOf("heart");
console.log(value);
[Function: heart]

What it prints (run when this page was built)

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