Reference
Numbered puzzle levels
import { … } from "@johnmorrisdotca/meikyuu/levels";
20.6 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
bandOf | function | Read the easy, medium or hard third of a numbered level collection. |
findMazeLevels | function | The levels of a kind that pass a filter, with their numbers: by shape, by way to play and by size, each when given. |
levelCount | function | How many levels a kind has. |
levelOf | function | Level number n (from 1) of a kind, or null when there is none. |
levelsOf | function | Every level of a kind. |
mazeLevelOfSize | function | Level n (from 1) of a size, or null when there is none. |
mazeLevelsOfSize | function | The levels of one size, in order: 256 of them, each a little harder than the one before. |
MEIKYUU_ARROW_LEVELS | constant | The fixed numbered arrow recipes and their measured effort. |
MEIKYUU_KINDS | constant | THE LEVELS: numbered lists of recipes, easiest first, never drawings. |
MEIKYUU_LEVELS_PER_SIZE | constant | How many levels each size has: 256, so a size is sixteen pages of sixteen, and the four sizes make 1,024. |
MEIKYUU_MAZE_LEVELS | constant | The fixed numbered flat-maze recipes and their measured difficulty metadata. |
MEIKYUU_MIXED_LEVELS | constant | The fixed numbered mixed-board recipes and their measured effort. |
MEIKYUU_SIZES | constant | The four sizes of the maze list. |
MeikyuuArrowLevel | type | A numbered arrow-puzzle recipe and its native difficulty metadata. |
MeikyuuBand | type | Which third of a size's list a level is in: the easy, medium and hard a site files it under. |
MeikyuuKind | type | The flat maze, arrow or mixed puzzle family. |
MeikyuuLevel | type | One native numbered maze, arrow or mixed level. |
MeikyuuMazeLevel | type | A numbered flat-maze recipe, difficulty measures, cell count and place within its size. |
MeikyuuMixedLevel | type | A numbered mixed-puzzle recipe and its native difficulty metadata. |
MeikyuuSize | type | The small, medium, large or huge numbered flat-maze collection. |
sizeOf | function | How big a maze is, in words a person picks by: under 150 cells is small, under 800 medium, under 4,000 large, and the rest huge. |