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 · Views, replay and player

GameModetype

Selects one of the five rule modules supported by this package.

Import it

import type { GameMode } from "@johnmorrisdotca/gunjin";

Definition

type GameMode = "hidden-hasami" | "luzhanqi-mini" | "salpakan" | "stratego-lite" | "gunjin-shogi";

Examples

import type { GameMode } from "@johnmorrisdotca/gunjin";

const value: GameMode = "hidden-hasami";
console.log(value);
hidden-hasami

What it prints (run when this page was built)

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