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 · Rules, generation and deductions

Marktype

Player-facing state of one cell; the answer is never a mark.

Import it

import type { Mark } from "@johnmorrisdotca/jirai";

Definition

type Mark = "covered" | "flag" | "question" | "open";

Examples

import type { Mark } from "@johnmorrisdotca/jirai";

const value: Mark = "covered";
console.log(value);
covered

What it prints (run when this page was built)

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