OpeningState型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The opening protocol stage, acting seat and recorded colour choices.
インポート
import type { OpeningState } from "@johnmorrisdotca/narabe";
定義
type OpeningState = {
stage: OpeningStage;
actor: Seat | null;
choices: OpeningChoice[];
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
stage | OpeningStage | |
actor | Seat | null | The seat acting outside the normal turn order, if any. |
choices | OpeningChoice[] | Every decision so far, so a stored game can be replayed through them. |
例
import { createGame } from "@johnmorrisdotca/narabe";
import type { OpeningState } from "@johnmorrisdotca/narabe";
const state = createGame({variant:"freestyle",size:15});
const value: OpeningState = state.opening;
console.log(value);{ stage: 'done', actor: null, choices: [] }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。