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

GenerationOptionstype

Work limits for seeded board generation and its no-guess check. attempts is the number of random layouts tried first; repairs is how many single-mine moves the repair stage may try on the closest of them (0, or repair: false, keeps the 0.2 behaviour of giving up after the attempts); enumerate switches the exact small-frontier check.

Import it

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

Definition

type GenerationOptions = {
    attempts?: number;
    repairs?: number;
    repair?: boolean;
    enumerate?: boolean;
};

Members

NameTypeDescription
attempts (optional)number | undefined
repairs (optional)number | undefined
repair (optional)boolean | undefined
enumerate (optional)boolean | undefined

Examples

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

const value: GenerationOptions = {attempts:1,repair:false,enumerate:true};
console.log(value);
{ attempts: 1, repair: false, enumerate: true }

What it prints (run when this page was built)

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