本文へ移動

Toranpuトランプ

デッキを使い、11種類のゲームでコンピューターと対戦し、ソリティアを解いたり、独自の絵柄でカードを表示したりできます。

「トランプ」は、日本語で playing cards を指す言葉です。 名前について(英語)

目次

リファレンス

テーブルのタグを登録

import { … } from "@johnmorrisdotca/toranpu/table/define";

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

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

<toranpu-table>, registered by being imported:

<script type="module" src="…/dist/table-define.js"></script>

<toranpu-table game="hearts"></toranpu-table>

Like element-define, the one kind of module here that does something when imported, and package.json says so.

エクスポート

名前種類概要
defineToranpuTable関数Registers <toranpu-table>, and the card, hand and pile elements, once.
TABLE_CLOTHS定数THE CLOTHS A TABLE MAY BE LAID IN: the same five the whole family offers, and itsutsu.com's boards.
TableCloth型A cloth's name.
ToranpuTableクラス<toranpu-table>: ANY OF THE ELEVEN GAMES, READY TO PLAY.

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

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