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

HUGE_SIZESconstant

The huge fields: four times the area of a 16×16 (the medium level), 1,024 to 1,152 squares, for a long solve. The same share of mines as a level, see hugeSettings. They are dealt, proved and drawn like any other field: a no-guess deal takes a few milliseconds to a tenth of a second here, and 2,400 squares is the most validSettings accepts.

Import it

import { HUGE_SIZES } from "@johnmorrisdotca/jirai";

Definition

const HUGE_SIZES: readonly [{ readonly width: 32; readonly height: 32; }, { readonly width: 48; readonly height: 24; }, { readonly width: 24; readonly height: 48; }] = [{ width: 32, height: 32 }, { width: 48, height: 24 }, { width: 24, height: 48 }] as const satisfies readonly {
    width: number;
    height: number;
}[]

Examples

import { HUGE_SIZES } from "@johnmorrisdotca/jirai";

console.log(HUGE_SIZES);
[
  { width: 32, height: 32 },
  { width: 48, height: 24 },
  { width: 24, height: 48 }
]

What it prints (run when this page was built)

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