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

tenkaCardOfIdfunction

The map and territory an id of tenkaCardId names, or null for a wild card (wild: true) or anything else.

Import it

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

Definition

function tenkaCardOfId(id: string): { map: TenkaMapKey; territory: number; } | { wild: true; } | null

Parameters

NameTypeDescription
idstring

A native Tenka card identifier.

Returns

{ map: TenkaMapKey; territory: number; } | { wild: true; } | null

The map and territory for a native card id, a wild marker for a wild id, or null for an unknown id.

Examples

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

console.log(tenkaCardOfId(tenkaCardId("world",0)));
{ map: 'world', territory: 0 }

What it prints (run when this page was built)

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