Skip to the content

Kotoba言葉

Load only the word lists you need, mark repeated letters correctly and play a daily or seeded word game.

Kotoba is the Japanese word for words. About the name

Contents

Reference

Playable game

import { … } from "@johnmorrisdotca/kotoba/play";

472.5 kB minified and gzipped, with everything it imports (measured with esbuild)

Exports

NameKindWhat it is
KOTOBA_PLAY_CSSconstantThe game's stylesheet: added to the page once, as a <style> with the id kotoba-play-style.
KOTOBA_PLAY_VARIABLESconstantThe variables the game's look is made of, with what they are unless set.
KotobaNewGametypeWhat newGame may change: the choices about the word, and nothing about the look.
KotobaPlaytypeA mounted game.
KotobaPlayOptionstypeWhat a round is dealt from, and how the game looks and behaves.
mountKotobafunctionPut a word game into container, and deal the first round.

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kotoba 1.2.0.