Program do all steps, but validation is not sucessfull
package com.codegym.games.minesweeper;
import com.codegym.engine.cell.*;
public class MinesweeperGame extends Game {
private static final int SIDE = 9;
public void initialize() {
setScreenSize(SIDE, SIDE);
createGame();
}
private void createGame () {
for (int i = 0; i <SIDE; i++) {
for (int j = 0; j < SIDE; j++) {
gameField[i][j] = new GameObject(i, j);
setCellColor (i, j, Color.ORANGE);
}
}
}
private GameObject[][] gameField = new GameObject[SIDE][SIDE];
}
package com.codegym.games.minesweeper;
public class GameObject {
public GameObject(int x, int y) {
this.x = x;
this.y = y;
}
public int x;
public int y;
}