本文へ移動

Jirai地雷

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

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

目次

リファレンス · 規則・生成・推論

HUGE_SIZES定数

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

The huge fields: four times the area of a 16×16 (the medium level), 1,024 to 1,152 squares, for a long solve. The same share of mines as a level, see hugeSettings. They are dealt, proved and drawn like any other field: a no-guess deal takes a few milliseconds to a tenth of a second here, and 2,400 squares is the most validSettings accepts.

インポート

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

定義

const HUGE_SIZES: readonly [{ readonly width: 32; readonly height: 32; }, { readonly width: 48; readonly height: 24; }, { readonly width: 24; readonly height: 48; }] = [{ width: 32, height: 32 }, { width: 48, height: 24 }, { width: 24, height: 48 }] as const satisfies readonly {
    width: number;
    height: number;
}[]

例

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

console.log(HUGE_SIZES);
[
  { width: 32, height: 32 },
  { width: 48, height: 24 },
  { width: 24, height: 48 }
]

出力(このページを作ったときに実行した結果)

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

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