Reference
Playable game
import { … } from "@johnmorrisdotca/kotoba/play";
472.5 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
KOTOBA_PLAY_CSS | constant | The game's stylesheet: added to the page once, as a <style> with the id kotoba-play-style. |
KOTOBA_PLAY_VARIABLES | constant | The variables the game's look is made of, with what they are unless set. |
KotobaNewGame | type | What newGame may change: the choices about the word, and nothing about the look. |
KotobaPlay | type | A mounted game. |
KotobaPlayOptions | type | What a round is dealt from, and how the game looks and behaves. |
mountKotoba | function | Put a word game into container, and deal the first round. |