Reference · Rules, maps and records
TenkaChoicetype
A choice made on the map and not yet a move: where from, where to, and how many armies (tapTerritory).
Import it
import type { TenkaChoice } from "@johnmorrisdotca/tenka";
Definition
type TenkaChoice = {
from: number | null;
to: number | null;
armies: number;
placedOn: number | null;
};
Members
| Name | Type | Description |
|---|---|---|
from | number | null | |
to | number | null | |
armies | number | How many armies move, when there is a number to choose. |
placedOn | number | null | The last territory a reinforcing army was placed on, for "all the rest here". |
Examples
import type { TenkaChoice } from "@johnmorrisdotca/tenka";
const choice = {from:null,to:null,armies:1,placedOn:null};
const value: TenkaChoice = choice;
console.log(value);{ from: null, to: null, armies: 1, placedOn: null }What it prints (run when this page was built)