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

tenkaCardDesignfunction

Tenka's cards as a Toranpu design: ask Toranpu for tenkaCardId(map, territory) in this design and it draws the territory's shape and name with its army's symbol, on its paper and in its frame. Register it (registerCardDesign(tenkaCardDesign())) for <toranpu-card design="tenka"> and the rest of Toranpu's elements to draw Tenka's cards by id.

Import it

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

Definition

function tenkaCardDesign(): CardDesign

Returns

CardDesign

Tenka's cards as a Toranpu design: ask Toranpu for tenkaCardId(map, territory) in this design and it draws the territory's shape and name with its army's symbol, on its paper and in its frame. Register it (registerCardDesign(tenkaCardDesign())) for <toranpu-card design="tenka"> and the rest of Toranpu's elements to draw Tenka's cards by id.

Examples

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

console.log(tenkaCardDesign().name);
tenka

What it prints (run when this page was built)

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