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 · SVG boards

DrawOptionstype

Visual settings and temporary selection marks for the role-redacted SVG renderer.

Import it

import type { DrawOptions } from "@johnmorrisdotca/gunjin/draw";

Also exported from: @johnmorrisdotca/gunjin

Definition

type DrawOptions = {
    language?: Language;
    material?: Material;
    pieceStyle?: PieceStyle;
    selected?: Coordinate | null;
    targets?: readonly Coordinate[];
    draft?: readonly SetupPiece[];
};

Members

NameTypeDescription
language (optional)Language | undefined
material (optional)Material | undefined
pieceStyle (optional)PieceStyle | undefined
selected (optional)Coordinate | null | undefined
targets (optional)readonly Coordinate[] | undefined
draft (optional)readonly SetupPiece[] | undefined

Examples

import type { DrawOptions } from "@johnmorrisdotca/gunjin/draw";

const value: DrawOptions = {language:"ja",material:"wood",pieceStyle:"tiles",selected:null};
console.log(value);
{
  language: 'ja',
  material: 'wood',
  pieceStyle: 'tiles',
  selected: null
}

What it prints (run when this page was built)

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