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

readTileWordsWithfunction

Used by tileWordsModule.ts only: how to read a list where there is no browser.

Import it

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

Definition

function readTileWordsWith(source: (language: KumimojiLanguage) => Promise<TileWords>): void

Parameters

NameTypeDescription
source(language: KumimojiLanguage) => Promise<TileWords>

The asynchronous loader that supplies the language word list.

Examples

import { loadTileWords, readTileWordsWith, tileWordsFrom } from "@johnmorrisdotca/kumimoji";
import { loadTileWordsFromModule } from "@johnmorrisdotca/kumimoji/words";

readTileWordsWith(async language => tileWordsFrom(language,{3:"0cat2r"}));
console.log((await loadTileWords("english")).allowed.has("cat"));
true

What it prints (run when this page was built)

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