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

toDisplayfunction

A logical point as it is shown.

Import it

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

Definition

function toDisplay(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 logical point as it is shown.

Examples

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

console.log(toDisplay(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.