Reference · Marking, scores and game rules
kanaFoundfunction
Found: every place plain green — the right kana, the right size, the right mark.
Import it
import { kanaFound } from "@johnmorrisdotca/kotoba";
Definition
function kanaFound(guess: readonly string[], word: readonly string[]): boolean
Parameters
| Name | Type | Description |
|---|---|---|
guess | readonly string[] | The guessed word or kana array, with the same length as the hidden word. |
word | readonly string[] | The word or kana array specified by this signature. |
Returns
boolean
Found: every place plain green — the right kana, the right size, the right mark.
Examples
import { kanaFound } from "@johnmorrisdotca/kotoba";
console.log(kanaFound(["は","な"],["は","な"]));trueWhat it prints (run when this page was built)