Skip to the content

Karakuriからくり

Play eight native puzzles, run bounded searches, step deterministic physics and mount a canvas player controlled by pointer or keyboard.

Karakuri is the Japanese word からくり for a mechanism or ingenious device. About the name

Contents

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);
5

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/karakuri 0.2.1.