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_PHASESconstant

The phases of a turn, by name: compare game.phase with these rather than with text typed out.

Import it

import { TENKA_PHASES } from "@johnmorrisdotca/tenka";

Definition

const TENKA_PHASES: { readonly setUp: "setUp"; readonly reinforce: "reinforce"; readonly attack: "attack"; readonly occupy: "occupy"; readonly fortify: "fortify"; readonly shift: "shift"; readonly over: "over"; } = {
    setUp: "setUp",
    reinforce: "reinforce",
    attack: "attack",
    occupy: "occupy",
    fortify: "fortify",
    shift: "shift",
    over: "over",
} as const satisfies Record<TenkaPhase, TenkaPhase>

Members

NameTypeDescription
setUp"setUp"
reinforce"reinforce"
attack"attack"
occupy"occupy"
fortify"fortify"
shift"shift"
over"over"

Examples

import { TENKA_PHASES } from "@johnmorrisdotca/tenka";
console.log(TENKA_PHASES);
{
  setUp: 'setUp',
  reinforce: 'reinforce',
  attack: 'attack',
  occupy: 'occupy',
  fortify: 'fortify',
  shift: 'shift',
  over: 'over'
}

What it prints (run when this page was built)

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