через GameObject.isMine не выходит
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];
private int countMinesOnField;
private void createGame() {
int count = 0;
for (int x = 0; x < SIDE; x++) {
for (int y = 0; y < SIDE; y++) {
gameField[y][x] = new GameObject(x, y, isMine);
isMine = false;
if (getRandomNumber(10) == 0) {
isMine = true;
count++;
}
setCellColor(x, y, Color.GREY);
}
}
}
public void initialize(){
setScreenSize(SIDE, SIDE);
createGame();
countMinesOnField = count;
}
}