Reference · Numbered puzzle levels
MeikyuuMixedLeveltype
A numbered mixed-puzzle recipe and its native difficulty metadata.
Import it
import type { MeikyuuMixedLevel } from "@johnmorrisdotca/meikyuu/levels";
Definition
type MeikyuuMixedLevel = Base & {
readonly kind: "mixed";
readonly recipe: MixedRecipe;
};
Members
| Name | Type | Description |
|---|---|---|
number | number | Its place in its own list, from 1. |
code | string | The recipe as one short word. |
effort | number | What it measures (see |
rating | number | The effort as a rating from 1 to 100 on the scale of the maze list. |
kind | "mixed" | |
recipe | MixedRecipe |
Examples
import type { MeikyuuMixedLevel } from "@johnmorrisdotca/meikyuu/levels";
import { levelOf } from "@johnmorrisdotca/meikyuu/levels";
const value: MeikyuuMixedLevel = levelOf("mixed",1)!;
console.log(value);{
kind: 'mixed',
number: 1,
code: 'cross:7:4:9675:1|square:5x5:kruskal:to-goal:126',
effort: 41,
rating: 10,
recipe: {
arrows: { shape: 'cross', w: 7, h: 7, longest: 4, seed: 9675, locks: 1 },
maze: {
shape: 'square',
w: 5,
h: 5,
algorithm: 'kruskal',
mode: 'to-goal',
seed: 126
}
}
}What it prints (run when this page was built)