Reference · Native Minesweeper player
STRINGSconstant
Built-in English and Japanese strings used by the player and renderer.
Import it
import { STRINGS } from "@johnmorrisdotca/jirai/play";
Definition
const STRINGS: { readonly en: { readonly board: "Minesweeper board"; readonly covered: "covered"; readonly flag: "flagged"; readonly question: "uncertain"; readonly empty: "empty"; readonly mine: "mine"; readonly wrong: "incorrect flag"; readonly ready: "Open a cell to begin. Your first cell is safe."; readonly playing: "Read the numbers. Open every safe cell."; readonly won: "Every safe cell is open. Well played."; readonly lost: "A mine. Try the same board again, or start another."; readonly checking: "Finding a board that can be solved without guessing…"; readonly restart: "Start over"; readonly hint: "Hint"; readonly reveal: "Open"; readonly mark: "Mark"; readonly mines: "Mines left"; readonly time: "Time"; readonly moves: "Moves"; readonly clear: "Cleared"; readonly view: "Just the board"; readonly close: "Close"; readonly hintNone: "No certain move proved. This position may need a guess."; readonly hintSafe: "This cell is safe."; readonly hintMine: "This cell contains a mine."; readonly count: "The neighbouring count settles it."; readonly overlap: "Compare the overlapping clues."; readonly total: "The total mine count settles it."; readonly enumeration: "Every consistent arrangement gives the same answer."; readonly help: "Tap to open; right-click or hold to mark. Use the arrows to move, Enter to open, F or Space to mark. Tap an open number to clear its neighbours when the flags match."; readonly error: "A verified board was not found. Try another seed, an opening elsewhere, or fewer mines."; }; readonly ja: { readonly board: "地雷の盤"; readonly covered: "未開封"; readonly flag: "旗"; readonly question: "不明"; readonly empty: "空き"; readonly mine: "地雷"; readonly wrong: "間違った旗"; readonly ready: "マスを開けて始めます。最初のマスは安全です。"; readonly playing: "数字を手がかりに、安全なマスをすべて開けましょう。"; readonly won: "安全なマスがすべて開きました。クリア!"; readonly lost: "地雷でした。同じ盤で再挑戦できます。"; readonly checking: "推測なしで解ける盤を探しています…"; readonly restart: "やり直す"; readonly hint: "ヒント"; readonly reveal: "開く"; readonly mark: "印を付ける"; readonly mines: "残りの地雷"; readonly time: "時間"; readonly moves: "手数"; readonly clear: "開いたマス"; readonly view: "盤だけ"; readonly close: "閉じる"; readonly hintNone: "確実な手は見つかりませんでした。推測が必要かもしれません。"; readonly hintSafe: "このマスは安全です。"; readonly hintMine: "このマスには地雷があります。"; readonly count: "周囲の数字から確定できます。"; readonly overlap: "重なった手がかりを比べましょう。"; readonly total: "地雷の総数から確定できます。"; readonly enumeration: "可能な配置すべてで同じ答えになります。"; readonly help: "タップで開く、右クリックか長押しで印を付けます。矢印キーで移動、Enterで開く、FかSpaceで印を付けます。旗の数が合う数字をタップすると周囲が開きます。"; readonly error: "推測なしで解ける盤が見つかりませんでした。別のシード、別の開始マス、または少ない地雷で試してください。"; }; }
Members
| Name | Type | Description |
|---|---|---|
en | { readonly board: "Minesweeper board"; readonly covered: "covered"; readonly flag: "flagged"; readonly question: "uncertain"; readonly empty: "empty"; readonly mine: "mine"; readonly wrong: "incorrect flag"; readonly ready: "Open a cell to begin. Your first cell is safe."; readonly playing: "Read the numbers. Open every safe cell."; readonly won: "Every safe cell is open. Well played."; readonly lost: "A mine. Try the same board again, or start another."; readonly checking: "Finding a board that can be solved without guessing…"; readonly restart: "Start over"; readonly hint: "Hint"; readonly reveal: "Open"; readonly mark: "Mark"; readonly mines: "Mines left"; readonly time: "Time"; readonly moves: "Moves"; readonly clear: "Cleared"; readonly view: "Just the board"; readonly close: "Close"; readonly hintNone: "No certain move proved. This position may need a guess."; readonly hintSafe: "This cell is safe."; readonly hintMine: "This cell contains a mine."; readonly count: "The neighbouring count settles it."; readonly overlap: "Compare the overlapping clues."; readonly total: "The total mine count settles it."; readonly enumeration: "Every consistent arrangement gives the same answer."; readonly help: "Tap to open; right-click or hold to mark. Use the arrows to move, Enter to open, F or Space to mark. Tap an open number to clear its neighbours when the flags match."; readonly error: "A verified board was not found. Try another seed, an opening elsewhere, or fewer mines."; } | |
ja | { readonly board: "地雷の盤"; readonly covered: "未開封"; readonly flag: "旗"; readonly question: "不明"; readonly empty: "空き"; readonly mine: "地雷"; readonly wrong: "間違った旗"; readonly ready: "マスを開けて始めます。最初のマスは安全です。"; readonly playing: "数字を手がかりに、安全なマスをすべて開けましょう。"; readonly won: "安全なマスがすべて開きました。クリア!"; readonly lost: "地雷でした。同じ盤で再挑戦できます。"; readonly checking: "推測なしで解ける盤を探しています…"; readonly restart: "やり直す"; readonly hint: "ヒント"; readonly reveal: "開く"; readonly mark: "印を付ける"; readonly mines: "残りの地雷"; readonly time: "時間"; readonly moves: "手数"; readonly clear: "開いたマス"; readonly view: "盤だけ"; readonly close: "閉じる"; readonly hintNone: "確実な手は見つかりませんでした。推測が必要かもしれません。"; readonly hintSafe: "このマスは安全です。"; readonly hintMine: "このマスには地雷があります。"; readonly count: "周囲の数字から確定できます。"; readonly overlap: "重なった手がかりを比べましょう。"; readonly total: "地雷の総数から確定できます。"; readonly enumeration: "可能な配置すべてで同じ答えになります。"; readonly help: "タップで開く、右クリックか長押しで印を付けます。矢印キーで移動、Enterで開く、FかSpaceで印を付けます。旗の数が合う数字をタップすると周囲が開きます。"; readonly error: "推測なしで解ける盤が見つかりませんでした。別のシード、別の開始マス、または少ない地雷で試してください。"; } |
Examples
import type { Settings } from "@johnmorrisdotca/jirai";
import { makeBoard } from "@johnmorrisdotca/jirai";
import { STRINGS } from "@johnmorrisdotca/jirai/play";
const settings: Settings={width:3,height:3,mines:1,grid:"square",noGuess:false,opening:"clear",seed:42};
const board=makeBoard(settings,0,{attempts:1,repair:false});
console.log(STRINGS.ja.board);地雷の盤What it prints (run when this page was built)