private void openTile(int x, int y) {
if (gameField[x][y].isMine) setCellValue(x,y,MINE);
else setCellNumber(x,y,gameField[x][y].countMineNeighbors);
gameField[x][y].isOpen = true;
setCellColor(x,y,Color.GREEN);
}
package com.codegym.games.minesweeper;
// 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 GameObject(int x, int y, boolean isMine) {
this.x = x;
this.y = y;
this.isMine = isMine;
}
}