@ -43,6 +43,8 @@ public class Cell extends JButton {
public void update() {
if (type == CellType.Number) {
setText(String.valueOf(value));
} else {
setBackground(Color.RED);
}
@ -38,6 +38,7 @@ public class Playfield {
for (int k = 0; k < bPlacement.length; k++) {
if (bPlacement[k] == i * Size + j) {
cells[i][j].type = CellType.Bomb;
cells[i][j].update();
break;