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

cardTerritoryfunction

The territory a card shows, or null for a wild card.

Import it

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

Definition

function cardTerritory(card: TenkaCard, map?: TenkaMap): number | null

Parameters

NameTypeDescription
cardnumber

The card index within this map’s deck.

map (optional)TenkaMap

The native world or Europe map to use.

Returns

number | null

The territory index, or null for a wild card.

Examples

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

console.log(cardTerritory(42));
null

What it prints (run when this page was built)

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