Reference · Rules, maps and records
TENKA_MOVESconstant
The kinds of move, by name: what goes in a move's kind.
Import it
import { TENKA_MOVES } from "@johnmorrisdotca/tenka";
Definition
const TENKA_MOVES: { readonly place: "place"; readonly trade: "trade"; readonly attack: "attack"; readonly blitz: "blitz"; readonly occupy: "occupy"; readonly endAttack: "endAttack"; readonly fortify: "fortify"; readonly shift: "shift"; readonly endTurn: "endTurn"; } = {
place: "place",
trade: "trade",
attack: "attack",
blitz: "blitz",
occupy: "occupy",
endAttack: "endAttack",
fortify: "fortify",
shift: "shift",
endTurn: "endTurn",
} as const satisfies Record<TenkaMoveKind, TenkaMoveKind>
Members
| Name | Type | Description |
|---|---|---|
place | "place" | |
trade | "trade" | |
attack | "attack" | |
blitz | "blitz" | |
occupy | "occupy" | |
endAttack | "endAttack" | |
fortify | "fortify" | |
shift | "shift" | |
endTurn | "endTurn" |
Examples
import { TENKA_MOVES } from "@johnmorrisdotca/tenka";
console.log(TENKA_MOVES);{
place: 'place',
trade: 'trade',
attack: 'attack',
blitz: 'blitz',
occupy: 'occupy',
endAttack: 'endAttack',
fortify: 'fortify',
shift: 'shift',
endTurn: 'endTurn'
}What it prints (run when this page was built)