public Engine(int height, int width, int numBombs) { _numBombs = numBombs; _numCells = height * width; _correctFlags = 0; _numFlags = 0; _gameBoard = new Board(height, width); PlaceBombs(); GameState = GameState.NotStarted; }
public Game(int w, int h, int dificulty) { this.width = w; this.height = h; this.board = new Board(width, height, dificulty); this.clearFields = board.GetAllClearFields(); this.cleared = 0; this.win = false; this.loose = false; }