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 · Eight puzzle-rule namespaces

wordKeyfunction

The key a game's words are kept under: its id with underscores for hyphens (game_tube_sort, rules_tube_sort).

Import it

import { wordKey } from "@johnmorrisdotca/karakuri";

Definition

function wordKey(game: string): string

Parameters

NameTypeDescription
gamestring

One of the native KARAKURI_GAME_IDS.

Returns

string

The key a game's words are kept under: its id with underscores for hyphens (game_tube_sort, rules_tube_sort).

Examples

import { wordKey } from "@johnmorrisdotca/karakuri";

console.log(wordKey("tube-sort"));
tube_sort

What it prints (run when this page was built)

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