本文へ移動

Gunjin軍人

階級を隠す5つの対戦ゲームで、配置を非公開に保ち、表示や再生を共有し、1台の端末を交代して遊べます。

「軍人」は、兵士を表す言葉です。 名前について(英語)

目次

リファレンス

隠し旗取りの規則

import { … } from "@johnmorrisdotca/gunjin/stratego-lite";

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

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

Shared immutable match lifecycle for the Capture Flag ruleset.

エクスポート

名前種類概要
acceptDraw関数Accepts the other player's pending draw offer using the current turn token.
acknowledgePass関数Confirms that the device has passed to the player named on the cover screen.
createMatch関数Creates an authoritative match.
declineDraw関数Makes a declined draw offer available again to the moving player.
offerDraw関数Offers a draw; the other player must accept it on their turn.
playMove関数Current-player moves with deterministic stale-turn rejection.
resignMatch関数Resignation is public and ends the active player's match.
rosterForSetup関数The private roster for the player currently arranging their side.
STRATEGO_LITE_RULES定数Original streamlined capture-flag rules using the published Original roster and combat table.
strategoCombat関数Resolves a Capture Flag battle without mutating either piece or match.
submitSetup関数Submits one player's hidden setup and then shows a pass-device screen.

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

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