Reference · Rules, maps and records
TENKA_PHASESconstant
The phases of a turn, by name: compare game.phase with these rather than with text typed out.
Import it
import { TENKA_PHASES } from "@johnmorrisdotca/tenka";
Definition
const TENKA_PHASES: { readonly setUp: "setUp"; readonly reinforce: "reinforce"; readonly attack: "attack"; readonly occupy: "occupy"; readonly fortify: "fortify"; readonly shift: "shift"; readonly over: "over"; } = {
setUp: "setUp",
reinforce: "reinforce",
attack: "attack",
occupy: "occupy",
fortify: "fortify",
shift: "shift",
over: "over",
} as const satisfies Record<TenkaPhase, TenkaPhase>
Members
| Name | Type | Description |
|---|---|---|
setUp | "setUp" | |
reinforce | "reinforce" | |
attack | "attack" | |
occupy | "occupy" | |
fortify | "fortify" | |
shift | "shift" | |
over | "over" |
Examples
import { TENKA_PHASES } from "@johnmorrisdotca/tenka";
console.log(TENKA_PHASES);{
setUp: 'setUp',
reinforce: 'reinforce',
attack: 'attack',
occupy: 'occupy',
fortify: 'fortify',
shift: 'shift',
over: 'over'
}What it prints (run when this page was built)