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

seededRandomfunction

Mulberry32, pinned by the replay tests: changing it would change every kept board.

Import it

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

Definition

function seededRandom(seed: number): () => number

Parameters

NameTypeDescription
seednumber

A reproducible numeric seed.

Returns

() => number

Mulberry32, pinned by the replay tests: changing it would change every kept board.

Examples

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

console.log(seededRandom(42)());
0.6011037519201636

What it prints (run when this page was built)

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