Browse Source

Bugfix early victory

feature_Minesweeper_Playfield
kfkama 2 years ago
parent
commit
d6178355de
  1. 3
      src/main/java/Minesweeper/Playfield.java

3
src/main/java/Minesweeper/Playfield.java

@ -65,7 +65,8 @@ public class Playfield {
}
public void reset() {
JOptionPane.showMessageDialog(MsG,"KABOOM! Try again!");
JOptionPane.showMessageDialog(MsG,"KABOOM! Try again!");
cellsFlooded = 0;
for (int i = 0; i < Size; i++) {
for (int j = 0; j < Size; j++) {
MsG.remove(cells[i][j]);

Loading…
Cancel
Save