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 maze rules and geometry

SOLID_DIE_SIDESconstant

How many sides a die has (what its name on a die is: d6). Only a solid in SOLID_DICE has one.

Import it

import { SOLID_DIE_SIDES } from "@johnmorrisdotca/meikyuu/3d";

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

Definition

const SOLID_DIE_SIDES: Readonly<Record<"cube" | "tetrahedron" | "octahedron" | "icosahedron" | "prism" | "trapezohedron" | "dodecahedron" | "rhombic-dodecahedron" | "bipyramid" | "icositetrahedron" | "triacontahedron", number>> = {
    prism: 3,
    tetrahedron: 4,
    cube: 6,
    octahedron: 8,
    trapezohedron: 10,
    dodecahedron: 12,
    "rhombic-dodecahedron": 12,
    bipyramid: 16,
    icosahedron: 20,
    icositetrahedron: 24,
    triacontahedron: 30,
}

Members

NameTypeDescription
cubenumber
tetrahedronnumber
octahedronnumber
icosahedronnumber
prismnumber
trapezohedronnumber
dodecahedronnumber
rhombic-dodecahedronnumber
bipyramidnumber
icositetrahedronnumber
triacontahedronnumber

Examples

import { SOLID_DIE_SIDES } from "@johnmorrisdotca/meikyuu/3d";
console.log(SOLID_DIE_SIDES);
{
  prism: 3,
  tetrahedron: 4,
  cube: 6,
  octahedron: 8,
  trapezohedron: 10,
  dodecahedron: 12,
  'rhombic-dodecahedron': 12,
  bipyramid: 16,
  icosahedron: 20,
  icositetrahedron: 24,
  triacontahedron: 30
}

What it prints (run when this page was built)

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