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

Coordinatetype

Zero-based board location shared by engine actions and public views.

Import it

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

Definition

type Coordinate = {
    x: number;
    y: number;
};

Members

NameTypeDescription
xnumber
ynumber

Examples

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

const value: Coordinate = {x:0,y:6};
console.log(value);
{ x: 0, y: 6 }

What it prints (run when this page was built)

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