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 · Dice and card dressing

tenkaCardIdfunction

The id of a card in Toranpu's hands: tenka-world-12 for the world's twelfth territory, tenka-wild for a wild card.

Import it

import { tenkaCardId } from "@johnmorrisdotca/tenka/dressing";

Definition

function tenkaCardId(map: TenkaMapKey, territory: number | null): string

Parameters

NameTypeDescription
mapTenkaMapKey

The native world or Europe map to use.

territorynumber | null

The native territory index.

Returns

string

The id of a card in Toranpu's hands: tenka-world-12 for the world's twelfth territory, tenka-wild for a wild card.

Examples

import { tenkaCardId } from "@johnmorrisdotca/tenka/dressing";

console.log(tenkaCardId("world",0));
tenka-world-0

What it prints (run when this page was built)

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