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

dailySeedfunction

UTC by definition, so two people sharing a daily seed get the same board.

Import it

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

Definition

function dailySeed(day: string, grid?: string): number

Parameters

NameTypeDescription
daystring

A real UTC date written YYYY-MM-DD.

grid (optional)string

The native topology/variant used to select the daily-seed format.

Returns

number

UTC by definition, so two people sharing a daily seed get the same board.

Examples

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

console.log(dailySeed("2024-01-01","orthogonal"));
409828595

What it prints (run when this page was built)

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