public ArrayList<Location> getAttackLocations()
{
ArrayList<Location> moves = new ArrayList<Location>();
ArrayList<Location> possibleMoves = new ArrayList<Location>();
...
Type: Posts; User: corong1997
public ArrayList<Location> getAttackLocations()
{
ArrayList<Location> moves = new ArrayList<Location>();
ArrayList<Location> possibleMoves = new ArrayList<Location>();
...
I'm writing a Chess program in Gridworld, and I'm running into a bit of a problem coming up with a line of code that checks if a location is occupied or not. Right now, I am using ...