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

levelNamedfunction

The level a name means, or null. Accepts easy, medium, hard and extra-hard (also written extra hard, extra_hard or extraHard, in any case), and the older beginner, intermediate and expert.

Import it

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

Definition

function levelNamed(name: unknown): Level | null

Parameters

NameTypeDescription
nameunknown

A candidate native level name or legacy alias.

Returns

Level | null

The canonical native level, or null for an unknown name.

Examples

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

console.log(levelNamed("beginner"));
easy

What it prints (run when this page was built)

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