本文へ移動

Jirai地雷

シード付きの地雷の盤を作り、見える数字からヒントを証明し、四角・四近傍・六角・端がつながる盤で遊べます。

「地雷」は、地面に埋められた爆弾のことです。 名前について(英語)

目次

リファレンス

四近傍の規則

import { … } from "@johnmorrisdotca/jirai/orthogonal";

最小化と gzip 圧縮をしたサイズは 6.6 kB(読み込むものをすべて含み、esbuild で計測)

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
decodeOrthogonalGame関数Restores only version 2 orthogonal progress records.
encodeOrthogonalGame関数Encodes an orthogonal game with an explicit variant marker and version 2.
makeOrthogonalBoard関数Deals a board whose clues count only up, down, left and right.
newOrthogonalGame関数Starts a game under four-neighbour rules.
ORTHOGONAL_VARIANT定数Identifies the four-neighbour rules and progress-code format.
orthogonalHint関数Gives a clue-only deduction; flags remain notes and cannot influence the result.
orthogonalNeighbours関数Returns the adjacent cells under the orthogonal rules.
OrthogonalSettings型Settings accepted by the four-neighbour-specific helpers.

ソースを見るGitHub で編集@johnmorrisdotca/jirai 0.5.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。