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

TenkaTablefunction

A 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. Options are read when it mounts; give it a new key to start over with different ones.

Import it

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

Definition

function TenkaTable({ players, computers, rounds, seed, map, colours, computerDelayMs, onChange, locale, strings, theme, record, dressing, ...element }: TenkaTableProps): React.JSX.Element

Parameters

NameTypeDescription
optionsTenkaTableProps

The component, table or display options.

Returns

React.JSX.Element

The React host element for the native playable table.

Examples

import {createElement} from "react";
import { TenkaTable } from "@johnmorrisdotca/tenka/react";
console.log(createElement(TenkaTable,{seed:42,record:false}));

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