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 · Numbered puzzle levels

levelCountfunction

How many levels a kind has.

Import it

import { levelCount } from "@johnmorrisdotca/meikyuu/levels";

Definition

function levelCount(kind: MeikyuuKind): number

Parameters

NameTypeDescription
kind"maze" | "arrows" | "mixed"

The native puzzle family or surface shape specified by this signature.

Returns

number

How many levels a kind has.

Examples

import { levelCount } from "@johnmorrisdotca/meikyuu/levels";

console.log(levelCount("maze"));
1024

What it prints (run when this page was built)

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