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
| Name | Type | Description |
|---|---|---|
game | Pick<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));falseWhat it prints (run when this page was built)