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

ringCountsfunction

How many cells each ring of a circle maze holds: one in the middle, six round it, and a ring doubles its cells when its cells would otherwise be wider than tall.

Import it

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

Definition

function ringCounts(rings: number): number[]

Parameters

NameTypeDescription
ringsnumber

The positive number of circular grid rings.

Returns

number[]

How many cells each ring of a circle maze holds: one in the middle, six round it, and a ring doubles its cells when its cells would otherwise be wider than tall.

Examples

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

console.log(ringCounts(3));
[ 1, 6, 12 ]

What it prints (run when this page was built)

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