[Add] Playful interaction with cells

This commit is contained in:
2026-06-06 21:34:35 +07:00
parent 1a6f8901a2
commit 1483964eaf
5 changed files with 195 additions and 5 deletions
@@ -0,0 +1,21 @@
namespace Minesweeper.Core
{
public readonly struct BoardActionResult
{
public BoardActionResult(bool changed, bool hitMine, bool won, bool invalid)
{
Changed = changed;
HitMine = hitMine;
Won = won;
Invalid = invalid;
}
public bool Changed { get; }
public bool HitMine { get; }
public bool Won { get; }
public bool Invalid { get; }
public static BoardActionResult NoChange => new BoardActionResult(false, false, false, false);
public static BoardActionResult InvalidAction => new BoardActionResult(false, false, false, true);
}
}