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

toLogicalfunction

A point of the picture as the maze has it: the inverse of toDisplay.

Import it

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

Definition

function toLogical(turn: Turn, [x, y]: Point): [number, number]

Parameters

NameTypeDescription
turnTurn

The native quarter-turn setting.

optionsPoint

Native display/mount choices, or the point tuple specified by this signature.

Returns

[number, number]

A point of the picture as the maze has it: the inverse of toDisplay.

Examples

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

console.log(toLogical(1,[10,20]));
[ -20, 10 ]

What it prints (run when this page was built)

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