本文へ移動

Tenka天下

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

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

目次

リファレンス

Reactの卓

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

最小化と gzip 圧縮をしたサイズは 94.2 kB(読み込むものをすべて含み、esbuild で計測)

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

エクスポート

名前種類概要
TenkaMap関数THE 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.
TenkaMapProps型What TenkaMap takes: a game to draw, and any attribute of its <svg>.
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.
TenkaTableProps型What TenkaTable takes: the options of mountTenka, and any attribute of its <div>.

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

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