[Add] Field and mine generation

This commit is contained in:
2026-06-06 21:18:10 +07:00
parent 8ed9cc655f
commit 1a6f8901a2
17 changed files with 481 additions and 7 deletions
@@ -0,0 +1,18 @@
using System.Collections.Generic;
namespace Minesweeper.Core
{
public interface IBoardService
{
int Width { get; }
int Height { get; }
int MinesCount { get; }
bool IsGenerated { get; }
void InitializeEmptyBoard();
bool GenerateAfterFirstClick(int safeX, int safeY);
bool IsInside(int x, int y);
bool TryGetCell(int x, int y, out BoardCellData cell);
IReadOnlyList<BoardCellData> GetCells();
}
}