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

Tenka documentation

Tenka 天下 — World conquest strategy game

Play seeded world conquest for two to six, with dice battles, cards, computer players and saved games.

Install

npm install @johnmorrisdotca/tenka

Start here

Entry points

Import itWhat it isSize
@johnmorrisdotca/tenka/shapes
World outlines · 3 exports
How Tenka's world is drawn: one outline per territory, where its counter stands, the sea links and the continents' borders.59.0 kB
@johnmorrisdotca/tenka/ui
Browser table and SVG · 32 exports
Tenka drawn and played in the browser, in plain DOM: a whole table against the computer (mountTenka), and the map on its own (tenkaMapSvg, drawn from tenkaMapModel).81.9 kB
@johnmorrisdotca/tenka/react
React table · 4 exports
94.2 kB
@johnmorrisdotca/tenka/dressing
Dice and card dressing · 12 exports
Tenka's table dressed in the family's dice and cards: Korokoro's dice for the dice of every attack, tumbling onto the faces the game threw, and Toranpu's cards for the cards in a hand, with a territory card of Tenka's own and a back of Tenka's own for the deck.136.1 kB
@johnmorrisdotca/tenka/element
Table element · 4 exports
84.8 kB
@johnmorrisdotca/tenka/element/define
Register the table · 4 exports
Define the default table when imported; no effect on a server.84.9 kB
@johnmorrisdotca/tenka
Rules, maps and records · 122 exports
Tenka 天下: the classic world-conquest game on a map of the modern world, for two to six players, as plain functions over plain data.14.9 kB

Guides

How-to

Explanation

Troubleshooting & FAQ

Upgrading