Reference
Native level collections
import { … } from "@johnmorrisdotca/karakuri/levels";
4.4 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
GRID_ESCAPE_LEVELS | constant | The levels, from easy to hard by their fewest moves. |
GridEscapeLevel | type | One level: its board and its proved fewest moves. |
gridPuzzleOf | function | The board of a level, read. |
NUTS_AND_BOLTS_LEVELS | constant | The levels, with more plates and more screws each time. |
PIN_RESCUE_LEVELS | constant | The levels, each with more pins to choose between and more ways to lose. |
PinRescueEntry | type | A level, the pins that win it in order (by index in pins), and pins that lose it in order. |
ROPE_CUT_LEVELS | constant | The levels. |
RopeCutEntry | type | A level and the cuts that win it, in order: the step to cut at, which rope, which link of it. |
SAVE_THE_CHARACTER_LEVELS | constant | The levels. |
SaveEntry | type | A level and the stroke that wins it (points, drawn in order) and a stroke that loses it. |
STORIES | constant | The stories, one to a level. |
STRETCH_GRABBER_LEVELS | constant | The levels. |
StretchGrabberEntry | type | A level, the waypoints of one way to win it, and of one way to lose it. |
TUBE_SORT_LEVELS | constant | The levels, each with more colours and more tubes than the one before. |