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

boardOffunction

The map an argument names, and the world for anything that is not one: these functions are handed to an array's map and filter (deck.map(cardKind)), which pass an index where the map would go.

Import it

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

Definition

function boardOf(map: unknown): TenkaMap

Parameters

NameTypeDescription
mapunknown

The native world or Europe map to use.

Returns

TenkaMap

The map an argument names, and the world for anything that is not one: these functions are handed to an array's map and filter (deck.map(cardKind)), which pass an index where the map would go.

Examples

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

console.log(boardOf("europe").key);
world

What it prints (run when this page was built)

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