A playable console Minesweeper (arrow keys, chording, flags, question marks, pause, difficulty presets) plus a deduction-and-guess solver that can play the game headlessly. Game logic lives in src/Minesweeper/Game and has no console dependencies, so it is covered by 65 unit tests. Includes publishing helpers for self-contained, trimmed single-file binaries (publish.sh) and an .editorconfig that the sources conform to: UTF-8 BOM and 4-space indents for C#, 2-space indents for project files, LF endings and 2-space indents for shell scripts, System-first usings, no redundant `this.`, and s_/ _ prefixed private static and instance fields.
5 lines
164 B
C#
5 lines
164 B
C#
namespace Minesweeper.Game;
|
|
|
|
/// <summary>A board coordinate, where (0,0) is the top-left square.</summary>
|
|
public readonly record struct CellRef(int X, int Y);
|