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