Esempio n. 1
0
 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;
 }
Esempio n. 2
0
File: Game.cs Progetto: Emp3r/School
 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;
 }