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

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

NameTypeDescription
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)

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