Не пропускает великий и ужасный.
Все работает точно как часы.
package com.javarush.games.minesweeper;
public class GameObject {
public int x;
public int y;
public boolean isMine;
public int countMineNeighbors;
public boolean isOpen;
public boolean isFlag;
public GameObject(int x, int y, boolean isMine) {
this.x = x;
this.y = y;
this.isMine = isMine;
}
public GameObject(){
}
public int getCountMineNeighbors() {
return countMineNeighbors;
}
public void setCountMineNeighbors(int countMineNeighbors) {
this.countMineNeighbors = countMineNeighbors;
}
public int getX() {
return x;
}
public int getY() {
return y;
}
}