本文へ移動

Tenka天下

2〜6人で、シードから始まる世界征服ゲームを遊べます。さいころでの戦い、カード、コンピューターの相手、ゲームの保存に対応します。

「天下」は、天の下に広がる世界を表す言葉です。 名前について(英語)

目次

リファレンス · Reactの卓

TenkaTable関数

リファレンスの説明と例は英語です。見出しと目次は日本語です。

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 { TenkaTable } from "@johnmorrisdotca/tenka/react";

定義

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

引数

名前型説明
optionsTenkaTableProps

The component, table or display options.

戻り値

React.JSX.Element

The React host element for the native playable table.

例

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

ソースを見るGitHub で編集@johnmorrisdotca/tenka 2.2.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。