Привет, народ!
Подскажите, что у меня не так с методом private void createGame()?
Почему-то не прохожу проверку, хотя объекты создаю и присваиваю им значения координат.
package com.javarush.games.minesweeper;
import com.javarush.engine.cell.*;
public class MinesweeperGame extends Game {
private static final int SIDE = 9;
private GameObject[][] gameField = new GameObject[SIDE][SIDE];
@Override
public void initialize() {
setScreenSize(SIDE, SIDE);
createGame();
}
private void createGame(){
for (int x = 0; x < gameField.length; x++){
for (int y = 0; y < gameField[x].length-1; y++){
gameField[x][y] = new GameObject(x, y);
setCellColor(x, y, Color.ORANGE);
}
}
}
}