Reference · Rules, maps and records
TenkaContinenttype
A continent: its name, the armies holding all of it is worth each turn, and its territories.
Import it
import type { TenkaContinent } from "@johnmorrisdotca/tenka";
Definition
type TenkaContinent = {
key: TenkaContinentKey;
name: string;
kanji: string;
bonus: number;
territories: readonly number[];
};
Members
| Name | Type | Description |
|---|---|---|
key | TenkaContinentKey | |
name | string | |
kanji | string | |
bonus | number | |
territories | readonly number[] |
Examples
import type { TenkaContinent } from "@johnmorrisdotca/tenka";
import { TENKA_MAPS } from "@johnmorrisdotca/tenka";
const value: TenkaContinent = TENKA_MAPS.world.continents[0];
console.log(value);{
key: 'northAmerica',
name: 'North America',
kanji: '北米',
bonus: 5,
territories: [
0, 1, 2, 3, 4,
5, 6, 7, 8
]
}What it prints (run when this page was built)