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

circleGridfunction

A circle maze: rings rings round a middle cell, cells running round each ring and out between the rings.

Import it

import { circleGrid } from "@johnmorrisdotca/meikyuu";

Definition

function circleGrid(rings: number): Grid

Parameters

NameTypeDescription
ringsnumber

The positive number of circular grid rings.

Returns

Grid

A circle maze: rings rings round a middle cell, cells running round each ring and out between the rings.

Examples

import { circleGrid } from "@johnmorrisdotca/meikyuu";

console.log(circleGrid(3).cells);
19

What it prints (run when this page was built)

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