namespace Minesweeper.Core; /// Thrown when a move is attempted on a board that has already been won or lost. public sealed class GameOverException(GameStatus status) : InvalidOperationException( $"The game is already {status}.") { public GameStatus Status { get; } = status; }