Browse Source

Bugfix early victory

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

1
src/main/java/Minesweeper/Playfield.java

@ -66,6 +66,7 @@ public class Playfield {
public void reset() { 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 i = 0; i < Size; i++) {
for (int j = 0; j < Size; j++) { for (int j = 0; j < Size; j++) {
MsG.remove(cells[i][j]); MsG.remove(cells[i][j]);

Loading…
Cancel
Save