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

GridEscapeLeveltype

One level: its board and its proved fewest moves.

Import it

import type { GridEscapeLevel } from "@johnmorrisdotca/karakuri/levels";

Definition

interface GridEscapeLevel {
    rows: readonly string[];
    fewest: number;
}

Members

NameTypeDescription
rowsreadonly string[]
fewestnumber

Examples

import type { GridEscapeLevel } from "@johnmorrisdotca/karakuri/levels";
import { GRID_ESCAPE_LEVELS } from "@johnmorrisdotca/karakuri/levels";

const value: GridEscapeLevel = GRID_ESCAPE_LEVELS[0];
console.log(value);
{
  rows: [ '......', '.hh...', 'KKegad', 'b.egad', 'bff.a.', 'b...cc' ],
  fewest: 7
}

What it prints (run when this page was built)

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