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

stoneRulesOffunction

The rules an option means for a maze of cells cells, or null when the option is no stones.

Import it

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

Definition

function stoneRulesOf(option: StoneOption | undefined, cells: number): StoneRules | null

Parameters

NameTypeDescription
optionStoneOption | undefined

The host’s stone setting, or undefined for off.

cellsnumber

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

Returns

StoneRules | null

The validated native limit/reach, or null when stones are disabled.

Examples

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

console.log(stoneRulesOf(true,25));
{ limit: 3, reach: 2 }

What it prints (run when this page was built)

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