This is failing requirement 3 saying that I'm counting mines for a cell that is mine. I believe I skip those with continue command. Any ideas?
It's also failing the 4th requirement. Says that countMineNeighbors() isn't using getNeighbors(GameObject) which I am using but obviously I'm missing something. Based on my prints, the neighbors and mineNeighbors seem to be counting fine.
package com.codegym.games.minesweeper;
public class GameObject {
public int x = 0;
public int y = 0;
public boolean isMine = false;
public int countMineNeighbors;
public GameObject(int x, int y, boolean isMine, int countMineNeighbors) {
this.x = x;
this.y = y;
this.isMine = isMine;
this.countMineNeighbors = countMineNeighbors;
}
}