Skip to the content

Gunjin軍人

Play five hidden-rank games, keep setups private, share redacted views and replay, and pass one device between players.

Gunjin is the Japanese word 軍人 for a soldier. About the name

Contents

Reference

Salpakan rules

import { … } from "@johnmorrisdotca/gunjin/salpakan";

4.6 kB minified and gzipped, with everything it imports (measured with esbuild)

Exports

NameKindWhat it is
createSalpakanMatchfunctionMakes 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.

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/gunjin 0.2.1.