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

React table

import { … } from "@johnmorrisdotca/tenka/react";

94.2 kB minified and gzipped, with everything it imports (measured with esbuild)

Exports

NameKindWhat it is
TenkaMapfunctionTHE WORLD, AS A REACT COMPONENT: every territory in its owner's colour, its counter of armies, the rings of a choice, and a press on a territory or its counter reported by number.
TenkaMapPropstypeWhat TenkaMap takes: a game to draw, and any attribute of its <svg>.
TenkaTablefunctionA whole table against the computer, as a React component: the plain-DOM table (mountTenka) mounted into this component's element once the browser has it.
TenkaTablePropstypeWhat TenkaTable takes: the options of mountTenka, and any attribute of its <div>.

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