So I'm trying to make a PACman game for my project. We were asked to use at least two "List" methods. I'm using "getNeighbours" to check if the ghost is near any walls, check which side is open and go that way. I have no idea how are you suppose to even use this, whether it checks top or left or right or bottom first, or how do you even tell the ghost to go to the way that's opening...
All I have so far is
List <Wall> wall = getNeighbours(1, false, Wall.class);
So if anyone can give me any hints or tips? Thanks :)
