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

Randomtype

A number in [0, 1), like Math.random, from a stream a seed fixes.

Import it

import type { Random } from "@johnmorrisdotca/meikyuu";

Definition

type Random = () => number;

Examples

import type { Random } from "@johnmorrisdotca/meikyuu";
import { seededRandom } from "@johnmorrisdotca/meikyuu";

const value: Random = seededRandom(42);
console.log(value);
[Function (anonymous)]

What it prints (run when this page was built)

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