createGame関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Creates a deterministic seeded game with one active pair and three previews.
インポート
import { createGame } from "@johnmorrisdotca/houseki/colour-chains";
定義
function createGame(options?: CreateOptions): GameState
引数
| 名前 | 型 | 説明 |
|---|---|---|
options (省略可) | CreateOptions | Validated native creation, authored challenge, or environment options described by this signature. |
戻り値
GameState
Creates a deterministic seeded game with one active pair and three previews.
例
import { createGame } from "@johnmorrisdotca/houseki/colour-chains";
console.log(createGame({seed:"docs"}).phase);falling出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。