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

Register Minesweeper

import { … } from "@johnmorrisdotca/jirai/element/define";

14.6 kB minified and gzipped, with everything it imports (measured with esbuild)

Exports

NameKindWhat it is
defineBoardfunctionRegisters the default board, or a subclass under a host's custom tag.
defineJiraifunctionRegisters the compatible default tag in a registry.
JIRAI_EMBED_OPTION_KEYSconstantThe real mounted options, checked by TypeScript and the builder.
JiraiElementclassA Minesweeper board with reflected settings, UTC daily play and native events.
JiraiElementOptionstypeHost settings, saved play and callbacks; visual attributes override settings.

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