TENKA_PHASES定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The phases of a turn, by name: compare game.phase with these rather than with text typed out.
インポート
import { TENKA_PHASES } from "@johnmorrisdotca/tenka";
定義
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>
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
setUp | "setUp" | |
reinforce | "reinforce" | |
attack | "attack" | |
occupy | "occupy" | |
fortify | "fortify" | |
shift | "shift" | |
over | "over" |
例
import { TENKA_PHASES } from "@johnmorrisdotca/tenka";
console.log(TENKA_PHASES);{
setUp: 'setUp',
reinforce: 'reinforce',
attack: 'attack',
occupy: 'occupy',
fortify: 'fortify',
shift: 'shift',
over: 'over'
}出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。