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

hasamiRosterfunction

Returns the ordered private setup roster for the selected square board size.

Import it

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

Definition

function hasamiRoster(size: 7 | 9): readonly string[]

Parameters

NameTypeDescription
size7 | 9

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

Returns

readonly string[]

Returns the ordered private setup roster for the selected square board size.

Examples

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

console.log(hasamiRoster(7));
[
  'leader', 'guard',
  'guard',  'guard',
  'guard',  'guard',
  'guard'
]

What it prints (run when this page was built)

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