Не проходит 2 пункт:
Метод markTile(int x, int y) не должен ничего делать, если элемент уже открыт (isOpen == true).
Не понимаю,почему
package com.javarush.games.minesweeper;
public class GameObject {
public boolean isMine;
public int x;
public int y;
public int countMineNeighbors;
public boolean isOpen = true;
public boolean isFlag = true;
public GameObject(int x, int y, boolean isMine, int countMineNeighbors) {
this.x = x;
this.y = y;
this.isMine = isMine;
this.countMineNeighbors = countMineNeighbors;
}
public GameObject(int x, int y, boolean isMine) {
this.x = x;
this.y = y;
this.isMine = isMine;
}
}