createHasamiMatchfunction
Makes a Hasami-inspired match with a 7×7 or 9×9 board.
Every export of every entry point, each with its own page. This page keeps the addresses the old one-page reference had.
@johnmorrisdotca/gunjin/hasamicreateHasamiMatchfunctionMakes a Hasami-inspired match with a 7×7 or 9×9 board.
hasamiRosterfunctionReturns the ordered private setup roster for the selected square board size.
playHasamiMovefunctionApplies a legal move action to a Hasami match, rejecting stale turns.
submitHasamiSetupfunctionSubmits one player's complete setup; the expected step rejects stale submissions.
@johnmorrisdotca/gunjin/luzhanqi-minicreateLuzhanqiMiniMatchfunctionMakes the fixed 7×8 streamlined land-battle training game.
luzhanqiMiniRosterfunctionReturns the ordered 14-piece setup roster for one side.
playLuzhanqiMiniMovefunctionApplies a legal move action, rejecting stale turn numbers.
submitLuzhanqiMiniSetupfunctionSubmits a complete side setup and advances the hotseat setup phase.
@johnmorrisdotca/gunjin/salpakancreateSalpakanMatchfunctionMakes the fixed classic 9×8 Salpakan match.
playSalpakanMovefunctionApplies a legal move action, rejecting stale turn numbers.
salpakanRosterfunctionReturns the ordered 21-piece setup roster for one side.
submitSalpakanSetupfunctionSubmits a complete side setup and advances the hotseat setup phase.
@johnmorrisdotca/gunjin/stratego-liteacceptDrawfunctionAccepts the other player's pending draw offer using the current turn token.
acknowledgePassfunctionConfirms that the device has passed to the player named on the cover screen.
createMatchfunctionCreates an authoritative match.
declineDrawfunctionMakes a declined draw offer available again to the moving player.
offerDrawfunctionOffers a draw; the other player must accept it on their turn.
playMovefunctionCurrent-player moves with deterministic stale-turn rejection.
resignMatchfunctionResignation is public and ends the active player's match.
rosterForSetupfunctionThe private roster for the player currently arranging their side.
STRATEGO_LITE_RULESconstantOriginal streamlined capture-flag rules using the published Original roster and combat table.
strategoCombatfunctionResolves a Capture Flag battle without mutating either piece or match.
submitSetupfunctionSubmits one player's hidden setup and then shows a pass-device screen.
@johnmorrisdotca/gunjin/gunjin-shogiacceptDrawfunctionAccepts the other player's pending draw offer using the current turn token.
acknowledgePassfunctionConfirms that the device has passed to the player named on the cover screen.
createMatchfunctionCreates an authoritative match.
declineDrawfunctionMakes a declined draw offer available again to the moving player.
GUNJIN_SHOGI_RULESconstantThe documented 31-piece club ruleset, on a plain 9×9 board.
gunjinCombatfunctionResolves a club-rules Gunjin Shogi battle without mutating match state.
offerDrawfunctionOffers a draw; the other player must accept it on their turn.
playMovefunctionCurrent-player moves with deterministic stale-turn rejection.
resignMatchfunctionResignation is public and ends the active player's match.
rosterForSetupfunctionThe private roster for the player currently arranging their side.
submitSetupfunctionSubmits one player's hidden setup and then shows a pass-device screen.
@johnmorrisdotca/gunjin/trusteddecodeTrustedMatchfunctionReads trusted host storage.
encodeTrustedMatchfunctionHost-only serialization.
@johnmorrisdotca/gunjin/viewsboardFeaturesfunctionPublic board markings (camps, headquarters and lakes), with no role-dependent information.
legalMovesForCurrentPlayerfunctionLegal move coordinates for the player whose turn it is; roles are never returned.
publicPositionfunctionRedacted position for spectators: only player ownership and occupied cells are returned.
viewForPlayerfunctionA player view redacts opponent roles and suppresses the board during device handoff.
@johnmorrisdotca/gunjin/drawdrawGunjinBoardfunctionDraws only a redacted player view.
DrawOptionstypeVisual settings and temporary selection marks for the role-redacted SVG renderer.
@johnmorrisdotca/gunjin/playGunjinMounttypePublic controls returned by mountGunjin; no authoritative state is exposed.
mountGunjinfunctionMounts a hotseat player.
MountOptionstypeLocale, materials, and safe public callbacks for a mounted hotseat player.
@johnmorrisdotca/gunjinboardFeaturesfunctionPublic board markings (camps, headquarters and lakes), with no role-dependent information.
CoordinatetypeZero-based board location shared by engine actions and public views.
decodePublicReplayfunctionValidates a role-free replay record for display; it cannot resume a match.
drawGunjinBoardfunctionDraws only a redacted player view.
DrawOptionstypeVisual settings and temporary selection marks for the role-redacted SVG renderer.
encodePublicReplayfunctionSerializes the role-redacted public replay record as JSON.
GameModetypeSelects one of the five rule modules supported by this package.
GUNJIN_STYLEconstantScoped presentation styles applied by the hotseat mount.
GunjinMounttypePublic controls returned by mountGunjin; no authoritative state is exposed.
LanguagetypeSupported interface locales.
legalMovesForCurrentPlayerfunctionLegal move coordinates for the player whose turn it is; roles are never returned.
MatchResulttypePublic outcome recorded when a match ends.
MaterialtypeBoard palettes shared with the game family.
modeNamefunctionReturns the localized display name for a ruleset.
mountGunjinfunctionMounts a hotseat player.
MountOptionstypeLocale, materials, and safe public callbacks for a mounted hotseat player.
MoveActiontypeMove requests are public, deterministic and rejected if their turn is stale.
PieceStyletypeAvailable piece silhouettes.
PlayertypeThe player whose private side is red.
playerNamefunctionReturns the localized name for one side.
PlayerViewtypeInformation safe to render for one player at the current pass boundary.
publicPositionfunctionRedacted position for spectators: only player ownership and occupied cells are returned.
PublicPositiontypeRole-free current position suitable for observers and change callbacks.
publicReplayfunctionCreates a public replay with only combat ranks that the selected rules expose.
PublicReplaytypeA shareable record without private setups or piece IDs; only mode-published combat ranks may appear.
roleNamefunctionReturns a localized piece label, with a readable fallback for unknown roles.
STRINGSconstantEnglish and Japanese interface labels used by the renderer and player.
ViewedPiecetypePlayer-facing piece.
viewForPlayerfunctionA player view redacts opponent roles and suppresses the board during device handoff.
wordsfunctionReturns the localized interface string table.