本文へ移動

Kotoba言葉

必要な単語一覧だけを読み込み、重複する文字を正しく判定し、日替わりやシード付きの単語ゲームを遊べます。

「Kotoba」は「言葉」です。 名前について(英語)

目次

リファレンス

遊べるゲーム

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

最小化と gzip 圧縮をしたサイズは 472.5 kB(読み込むものをすべて含み、esbuild で計測)

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
KOTOBA_PLAY_CSS定数The game's stylesheet: added to the page once, as a <style> with the id kotoba-play-style.
KOTOBA_PLAY_VARIABLES定数The variables the game's look is made of, with what they are unless set.
KotobaNewGame型What newGame may change: the choices about the word, and nothing about the look.
KotobaPlay型A mounted game.
KotobaPlayOptions型What a round is dealt from, and how the game looks and behaves.
mountKotoba関数Put a word game into container, and deal the first round.

ソースを見るGitHub で編集@johnmorrisdotca/kotoba 1.2.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。