Skip to the content

Kumimoji組み文字

Build crosswords from seeded English or Japanese tile bags, alone or at a shared table.

Kumimoji means assembled characters in Japanese. About the name

Contents

Reference · Rules, tiles and records

kumimojiExportedfunction

A game as the JSON export's object.

Import it

import { kumimojiExported } from "@johnmorrisdotca/kumimoji";

Definition

function kumimojiExported(saved: KumimojiSaved): KumimojiExported

Parameters

NameTypeDescription
savedKumimojiSaved

The original deal, current progress and elapsed time.

Returns

KumimojiExported

A game as the JSON export's object.

Examples

import { deal, generateKumimoji, kumimojiExported } from "@johnmorrisdotca/kumimoji";
import { loadTileWordsFromModule } from "@johnmorrisdotca/kumimoji/words";

await loadTileWordsFromModule("english");
const play = deal("catdog",3);
const dealt = generateKumimoji(3,"hard",44);
const saved = {deal:dealt,play:deal(dealt.givens,dealt.size),elapsedMs:0};
console.log(kumimojiExported(saved).format);
1

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kumimoji 1.6.0.