Skip to the content

Tenka天下

Play seeded world conquest for two to six, with dice battles, cards, computer players and saved games.

Tenka means the world under heaven in Japanese. About the name

Contents

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

NameTypeDescription
keyTenkaContinentKey
namestring
kanjistring
bonusnumber
territoriesreadonly 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)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/tenka 2.2.0.