KotobaNewGame型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What newGame may change: the choices about the word, and nothing about the look.
インポート
import type { KotobaNewGame } from "@johnmorrisdotca/kotoba/play";
定義
type KotobaNewGame = Pick<KotobaPlayOptions, "words" | "size" | "easy" | "rows" | "seed" | "daily" | "hidden">;
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
easy (省略可) | boolean | undefined | Hide only one of the easy answers. Unless said, any answer. |
words (省略可) | WordListName | undefined | The list: English, French, German or Japanese kana. Unless said, English. |
size (省略可) | number | undefined | Letters, or kana, in the word. Unless said, five, or four kana. |
rows (省略可) | number | undefined | How many guesses the round gives. Unless said, six. |
seed (省略可) | number | undefined | A seed: the same seed picks the same word from the same list. Unless said, one is drawn. |
daily (省略可) | string | boolean | undefined | The word of the day ( |
hidden (省略可) | string | undefined | The word to find, whatever the lists say: a friend's, or one from your own source. Wins over |
例
import type { KotobaNewGame } from "@johnmorrisdotca/kotoba/play";
const value: KotobaNewGame = {words:"en",size:5,seed:42};
console.log(value);{ words: 'en', size: 5, seed: 42 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。