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 · Marking, scores and game rules

isKanaGamefunction

Whether a round is played in kana.

Import it

import { isKanaGame } from "@johnmorrisdotca/kotoba";

Definition

function isKanaGame(game: Pick<WordGame, "language">): boolean

Parameters

NameTypeDescription
gamePick<WordGame, "language">

The current immutable word-game state.

Returns

boolean

Whether a round is played in kana.

Examples

import { isKanaGame, startWordGame } from "@johnmorrisdotca/kotoba";

const game = startWordGame("en",5,"apple");
console.log(isKanaGame(game));
false

What it prints (run when this page was built)

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