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
| Name | Type | Description |
|---|---|---|
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)