I haven't changed the getNeighbours method that is provided, as the task does not suggest to do so. I've tried to figure out the logic as best I could but i've missed something somewhere. is anyone able to point me in the right direction please?
would really appreciate the help.
package com.codegym.games.minesweeper;
import java.util.List;
public class GameObject {
public int x = 0;
public int y = 0;
public boolean isMine;
public int countMineNeighbours;
public GameObject(int xa, int ya, boolean isMine)
{
this.x=xa;
this.y=ya;
this.isMine = isMine;
}
}