@ -65,6 +65,7 @@ public class Cell extends JButton {
if (type == CellType.Number) {
setBackground(Color.gray);
playfield.cellDried();
} else {
setBackground(Color.red);
}
@ -72,6 +73,9 @@ public class Cell extends JButton {
flagged = true;
setBackground(Color.cyan);
playfield.cellFlooded();
@ -134,4 +134,8 @@ public class Playfield {
System.exit(0);
public void cellDried() {
cellsFlooded--;