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

TenkaTradetype

The last set of cards traded in, for the table to see: by whom, for how many, and the territory that got two more.

Import it

import type { TenkaTrade } from "@johnmorrisdotca/tenka";

Definition

type TenkaTrade = {
    seat: TenkaSeat;
    cards: readonly TenkaCard[];
    armies: number;
    bonusTerritory: number | null;
};

Members

NameTypeDescription
seatnumber
cardsreadonly number[]
armiesnumber
bonusTerritorynumber | null

Examples

import type { TenkaTrade } from "@johnmorrisdotca/tenka";

const value: TenkaTrade = {seat:0,cards:[0,1,2],armies:4,bonusTerritory:null};
console.log(value);
{ seat: 0, cards: [ 0, 1, 2 ], armies: 4, bonusTerritory: null }

What it prints (run when this page was built)

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