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

stoneLimitForfunction

How many stones a maze of cells cells gets by default: three, and one more for every hundred cells across (so four for a small maze, nine for a huge one, thirteen for a colossal one).

Import it

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

Definition

function stoneLimitFor(cells: number): number

Parameters

NameTypeDescription
cellsnumber

A cell-index path or total count specified by this signature.

Returns

number

How many stones a maze of cells cells gets by default: three, and one more for every hundred cells across (so four for a small maze, nine for a huge one, thirteen for a colossal one).

Examples

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

console.log(stoneLimitFor(25));
3

What it prints (run when this page was built)

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