|
@ -65,7 +65,8 @@ 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]); |
|
|