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

GRIDSconstant

Names for the supported square, four-neighbour, hex, and wrap grids.

Import it

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

Definition

const GRIDS: { readonly square: "square"; readonly orthogonal: "orthogonal"; readonly hex: "hex"; readonly wrap: "wrap"; } = { square: "square", orthogonal: "orthogonal", hex: "hex", wrap: "wrap" } as const

Members

NameTypeDescription
square"square"
orthogonal"orthogonal"
hex"hex"
wrap"wrap"

Examples

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

console.log(GRIDS);
{
  square: 'square',
  orthogonal: 'orthogonal',
  hex: 'hex',
  wrap: 'wrap'
}

What it prints (run when this page was built)

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