Reference · Numbered puzzle levels
levelsOffunction
Every level of a kind.
Import it
import { levelsOf } from "@johnmorrisdotca/meikyuu/levels";
Definition
function levelsOf(kind: "maze"): readonly MeikyuuMazeLevel[]
function levelsOf(kind: "arrows"): readonly MeikyuuArrowLevel[]
function levelsOf(kind: "mixed"): readonly MeikyuuMixedLevel[]
function levelsOf(kind: MeikyuuKind): readonly MeikyuuLevel[]
Parameters
| Name | Type | Description |
|---|---|---|
kind | "maze" | "arrows" | "mixed" | The native puzzle family or surface shape specified by this signature. |
Returns
readonly MeikyuuLevel[]
Every level of a kind.
Examples
import { levelsOf } from "@johnmorrisdotca/meikyuu/levels";
console.log(levelsOf("maze").length);1024What it prints (run when this page was built)