Ejemplo n.º 1
0
 private void btnRestart_Click(object sender, EventArgs e)
 {
     btnRestart.Visible = false;
     Gameover_lbl.Visible = false;
     gridLayoutPanel.Controls.Clear();
     Minesweeper _minesweeper = new Minesweeper();
     IntializeTheBoard();
 }
Ejemplo n.º 2
0
 public void testPlaceMinesForFirstTime()
 {
     _minesweeper.PlaceMines();
     Minesweeper minesweeper2 = new Minesweeper();
     minesweeper2.PlaceMines();
     Assert.IsFalse(_minesweeper.mineGrid.Equals(minesweeper2.mineGrid));
 }
Ejemplo n.º 3
0
 public void createMinesweeper()
 {
     _minesweeper = new Minesweeper();
 }