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

sayfunction

The words for key in lang, with each {name} filled from values; English when the language has none; the key itself when nobody has.

Import it

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

Definition

function say(lang: KarakuriLanguage, key: string, values?: Record<string, string | number>): string

Parameters

NameTypeDescription
langKarakuriLanguage

The native English or Japanese language.

keystring

The native localized-message key.

values (optional)Record<string, string | number>

Numbers to hash, or localized-message placeholders specified by the signature.

Returns

string

The words for key in lang, with each {name} filled from values; English when the language has none; the key itself when nobody has.

Examples

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

console.log(say("en","game_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.