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

Hidden Hasami rules

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

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

Exports

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

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