Hello there, I do not understand last condition;
my point is in the method onMouseLeftClick I already opening the tiles. Why should I open a tile and restart the game in the same turn?
What I am missing here please?
At first point I thought that I should call the restart method only in case isGameStopped is true and description is wrong, but it seems that I am missing something else.
package com.codegym.games.minesweeper;
import com.codegym.engine.cell.*;
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){
// this.x = x;
// this.y = y;
// }
public GameObject(int x, int y, boolean isMine){
this.x = x;
this.y = y;
this.isMine = isMine;
}
}