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

tenkaDeckForfunction

Every card of a game on this map: a card for each territory, numbered as the territories are, then the wild cards.

Import it

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

Definition

function tenkaDeckFor(map?: TenkaMap): TenkaCard[]

Parameters

NameTypeDescription
map (optional)TenkaMap

The native world or Europe map to use.

Returns

number[]

Every card of a game on this map: a card for each territory, numbered as the territories are, then the wild cards.

Examples

import { TENKA_MAPS, tenkaDeckFor } from "@johnmorrisdotca/tenka";

console.log(tenkaDeckFor(TENKA_MAPS.europe).length);
51

What it prints (run when this page was built)

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