Reference · Marking, scores and game rules
decodeHiddenfunction
A hidden word read back, in lower case, or null for one that is not size letters of the language's alphabet.
Import it
import { decodeHidden } from "@johnmorrisdotca/kotoba";
Definition
function decodeHidden(givens: string, size: number, lang?: GomojiLanguage): string | null
Parameters
| Name | Type | Description |
|---|---|---|
givens | string | The uppercase native hidden-word code. |
size | number | The number of letters or kana in each word. |
lang (optional) | GomojiLanguage | The English, French or German alphabet. |
Returns
string | null
A hidden word read back, in lower case, or null for one that is not size letters of the language's alphabet.
Examples
import { decodeHidden } from "@johnmorrisdotca/kotoba";
console.log(decodeHidden("APPLE",5));appleWhat it prints (run when this page was built)