using Minesweeper.Config; using Minesweeper.Core; namespace Minesweeper.Presentation.ReadModels { public sealed class GameReadModel : IGameReadModel { private readonly MinesweeperGameConfig config; private readonly IGameStateService gameStateService; public GameReadModel(MinesweeperGameConfig config, IGameStateService gameStateService) { this.config = config; this.gameStateService = gameStateService; } public GameState State => gameStateService.Current; public int Width => config.Width; public int Height => config.Height; public int MinesCount => config.MinesCount; } }