本文へ移動

Sugoroku双六

標準の規則、キューブ、試合の得点、シード付きのサイコロ、再生できる記録で、バックギャモンと仲間のゲームを遊べます。

「双六」は、盤と駒で遊ぶゲームの名前です。 名前について(英語)

目次

リファレンス

要素の登録

import { … } from "@johnmorrisdotca/sugoroku/element/define";

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

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

エクスポート

名前種類概要
defineBoard関数Defines the default playable board, or a subclass under a custom tag.
definePosition関数Defines a static position, or a subclass under a host's tag.
readEmbedPosition関数Reads a GNU position ID or bounded JSON position; null means invalid counts or input.
SUGOROKU_DRAW_OPTION_KEYS定数Native draw keys, checked by the shared builder.
SUGOROKU_EMBED_OPTION_KEYS定数The real mounted options, checked alongside builder coverage.
SUGOROKU_POSITION_OPTION_KEYS定数All host position options, checked by the builder.
SugorokuBoardクラスNative custom element with reflected setup and presentation.
SugorokuElementOptions型Host mount options, including custom colours, names, a match and callbacks.
SugorokuPositionクラスA read-only backgammon position, drawn by the native SVG writer.
SugorokuPositionOptions型Host data and all native SVG drawing choices for a position.

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

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