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 capture-flag rules

createMatchfunction

Creates an authoritative match. Keep this state on a trusted host.

Import it

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

Also exported from: @johnmorrisdotca/gunjin/gunjin-shogi

Definition

function createMatch(mode: GameMode, size?: SetupSize): AuthoritativeMatch

Parameters

NameTypeDescription
modeGameMode

The native rule-mode key.

size (optional)SetupSize

A supported board size; Hasami accepts 7 or 9 square holes per side.

Returns

AuthoritativeMatch

Creates an authoritative match. Keep this state on a trusted host.

Examples

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

console.log(createMatch("gunjin-shogi").phase);
setup

What it prints (run when this page was built)

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