Skip to the content

Jirai地雷

Deal seeded minefields, prove hints from visible clues and mount square, orthogonal, hexagonal or wraparound boards.

Jirai is the Japanese word 地雷 for a land mine. About the name

Contents

Reference · Visible board models

DrawOptionstype

Appearance and optional hint marker used by drawing and play.

Import it

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

Definition

type DrawOptions = {
    material?: Material;
    pieces?: Pieces;
    language?: Language;
    hint?: number | null;
};

Members

NameTypeDescription
material (optional)Material | undefined
pieces (optional)Pieces | undefined
language (optional)Language | undefined
hint (optional)number | null | undefined

Examples

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

const value: DrawOptions = {material:"ivory",pieces:"flowers",language:"ja",hint:null};
console.log(value);
{ material: 'ivory', pieces: 'flowers', language: 'ja', hint: null }

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/jirai 0.5.0.