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

LevelSizetype

Board size and mine count a level asks for.

Import it

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

Definition

type LevelSize = Pick<Settings, "width" | "height" | "mines">;

Members

NameTypeDescription
widthnumber
heightnumber
minesnumber

Examples

import type { LevelSize } from "@johnmorrisdotca/jirai";
import { levelSettings } from "@johnmorrisdotca/jirai";

const value: LevelSize = levelSettings("easy");
console.log(value);
{ width: 9, height: 9, mines: 10 }

What it prints (run when this page was built)

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