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

easyFloorAtfunction

What the easy third asks for beyond the least, rising through it so that it climbs: at place place (from 1) of a size, a maze has at least this many traps, forks and wasted cells, and from the end of the easy third the least. Level 1 asks only for the least; level 86 asks for 3 traps, 5 forks and 8 wasted cells. A place of a size with no easy third, such as the huge ones, passes it without trying.

Import it

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

Definition

function easyFloorAt(place: number): { traps: number; decisions: number; waste: number; }

Parameters

NameTypeDescription
placenumber

The native numbered level position.

Returns

{ traps: number; decisions: number; waste: number; }

What the easy third asks for beyond the least, rising through it so that it climbs: at place place (from 1) of a size, a maze has at least this many traps, forks and wasted cells, and from the end of the easy third the least. Level 1 asks only for the least; level 86 asks for 3 traps, 5 forks and 8 wasted cells. A place of a size with no easy third, such as the huge ones, passes it without trying.

Examples

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

console.log(easyFloorAt(1));
{ traps: 2, decisions: 3, waste: 4 }

What it prints (run when this page was built)

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