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

ARROW_STEPSconstant

The up, right, down and left row/column increments of arrow directions.

Import it

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

Definition

const ARROW_STEPS: readonly (readonly [number, number])[] = [[0, -1], [1, 0], [0, 1], [-1, 0]]

Examples

import { ARROW_STEPS } from "@johnmorrisdotca/meikyuu";
console.log(ARROW_STEPS);
[ [ 0, -1 ], [ 1, 0 ], [ 0, 1 ], [ -1, 0 ] ]

What it prints (run when this page was built)

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