createChallenge関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Makes an authored game from its seed, goal and stones.
インポート
import { createChallenge } from "@johnmorrisdotca/houseki/tsumiki";
定義
function createChallenge(options: ChallengeOptions): GameState
引数
| 名前 | 型 | 説明 |
|---|---|---|
options | ChallengeOptions | The game's identity, seed, goal and stones. |
戻り値
GameState
A new game of that challenge.
例
import { createChallenge } from "@johnmorrisdotca/houseki/tsumiki";
console.log(createChallenge({ id: "one", seed: "s", goal: { kind: "lines", target: 1 } }).settings.mode);challenge出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。