Reference · Native level collections
GRID_ESCAPE_LEVELSconstant
The levels, from easy to hard by their fewest moves.
Import it
import { GRID_ESCAPE_LEVELS } from "@johnmorrisdotca/karakuri/levels";
Definition
const GRID_ESCAPE_LEVELS: readonly GridEscapeLevel[] = [
{ rows: ["......", ".hh...", "KKegad", "b.egad", "bff.a.", "b...cc"], fewest: 7 },
{ rows: ["..iicf", "..a.cf", "KKagcf", ".j.gkk", ".jeehh", ".jddbb"], fewest: 13 },
{ rows: ["..ff..", "k..ce.", "kKKcea", "kiidea", "..bdhh", "jjb.gg"], fewest: 21 },
{ rows: ["adddic", "aeefic", "KKjfg.", "..jhg.", "...hbb", "....kk"], fewest: 30 },
{ rows: ["adddic", "aeefic", "KKjfgl", "mmj.gl", "...hbb", "...hkk"], fewest: 36 },
]
Examples
import { GRID_ESCAPE_LEVELS } from "@johnmorrisdotca/karakuri/levels";
import { length } from "@johnmorrisdotca/karakuri/physics";
console.log(GRID_ESCAPE_LEVELS.length);5What it prints (run when this page was built)