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 · Numbered surface levels

MeikyuuSolidLeveltype

A LEVEL OF A SOLID, AND HOW A FILE OF ROWS BECOMES THE LISTS: the shape every level entry of the solids shares (3d/levels, 3d/levels/dice, 3d/levels/shapes, 3d/levels/all), so that each file of recipes is turned into levels by the same code, and a page that shows one solid loads the file of that solid and no other.

Import it

import type { MeikyuuSolidLevel } from "@johnmorrisdotca/meikyuu/3d/levels";

Also exported from: @johnmorrisdotca/meikyuu/3d/levels/dice, @johnmorrisdotca/meikyuu/3d/levels/shapes, @johnmorrisdotca/meikyuu/3d/levels/all

Definition

type MeikyuuSolidLevel = {
    readonly kind: SolidKind;
    readonly size: SolidSize;
    readonly number: number;
    readonly code: string;
    readonly recipe: SolidRecipe;
    readonly cells: number;
    readonly effort: number;
    readonly rating: number;
    readonly score: number;
};

Members

NameTypeDescription
kindSolidKind
size"small" | "medium" | "large" | "huge" | "colossal"
numbernumber

Its place in its list, from 1.

codestring
recipeSolidRecipe
cellsnumber
effortnumber

What it measures (see measureMaze).

ratingnumber

The effort as a rating from 1 to 100, on the scale of the flat lists.

scorenumber

How hard it is to play, from 0 to 100 (see solidDifficultyOf), counting how much of the solid the answer covers.

Examples

import type { MeikyuuSolidLevel } from "@johnmorrisdotca/meikyuu/3d/levels";
import { solidLevelOf } from "@johnmorrisdotca/meikyuu/3d/levels";

const value: MeikyuuSolidLevel = solidLevelOf("cube","small",1)!;
console.log(value);
{
  kind: 'cube',
  size: 'small',
  number: 1,
  code: 'cube:4:prim:3163583831',
  recipe: { kind: 'cube', n: 4, algorithm: 'prim', seed: 3163583831 },
  cells: 96,
  effort: 67,
  rating: 32,
  score: 24
}

What it prints (run when this page was built)

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