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 · Surface recipe readers

solidLevelNumberOffunction

The place (from 1) a recipe has among the levels of a solid at a size, or null when it is not one of them.

Import it

import { solidLevelNumberOf } from "@johnmorrisdotca/meikyuu/3d/levels/recipes";

Definition

function solidLevelNumberOf(kind: string, size: string, code: string): number | null

Parameters

NameTypeDescription
kindstring

The native puzzle family or surface shape specified by this signature.

sizestring

The named level size, or numeric tall width specified by this signature.

codestring

The native encoded recipe or saved run.

Returns

number | null

The place (from 1) a recipe has among the levels of a solid at a size, or null when it is not one of them.

Examples

import { solidLevelNumberOf, solidRecipesOf } from "@johnmorrisdotca/meikyuu/3d/levels/recipes";

console.log(solidLevelNumberOf("cube","small",solidRecipesOf("cube","small")[0]));
1

What it prints (run when this page was built)

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