ChallengeOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
An authored game: its identity, seed, goal and the stones it starts with.
インポート
import type { ChallengeOptions } from "@johnmorrisdotca/houseki/tsumiki";
定義
interface ChallengeOptions {
readonly id: string;
readonly seed: string;
readonly goal: ChallengeGoal;
readonly stones?: readonly number[];
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
id | string | |
seed | string | |
goal | ChallengeGoal | |
stones (省略可) | readonly number[] | undefined |
例
import type { ChallengeOptions } from "@johnmorrisdotca/houseki/tsumiki";
const value: ChallengeOptions = { id: "one", seed: "s", goal: { kind: "lines", target: 1 } };
console.log(value.id);one出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。