本文へ移動

Tobiishi飛び石

9種類の盤で石を飛び越え、シード付きの解ける問題を作り、ページにペグ・ソリティアを追加できます。

「飛び石」は、間を空けて並べた石のことです。 名前について(英語)

目次

リファレンス

ペグ・ソリティアの要素

import { … } from "@johnmorrisdotca/tobiishi/element";

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

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

エクスポート

名前種類概要
defineGame関数Registers the default game or a subclass under a host's tag.
defineTobiishi関数Compatible registration name, with an optional registry.
TOBIISHI_EMBED_OPTION_KEYS定数The native mounted options, checked by the shared builder.
TobiishiElementOptions型Host games, witnesses, palettes, external settings and the original persistence callback.
TobiishiGameクラスA peg-solitaire element with reflected choices and preserved native player state.

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

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