OpeningStatetype
The opening protocol stage, acting seat and recorded colour choices.
Import it
import type { OpeningState } from "@johnmorrisdotca/narabe";
Definition
type OpeningState = {
stage: OpeningStage;
actor: Seat | null;
choices: OpeningChoice[];
};
Members
| Name | Type | Description |
|---|---|---|
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. |
Examples
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: [] }What it prints (run when this page was built)