moved generate moves to player to increase speed

This commit is contained in:
2023-05-01 19:32:46 +10:00
parent ec2b0d9d5f
commit 7ab8d3227d
2 changed files with 92 additions and 3 deletions

View File

@@ -288,7 +288,7 @@ public class BlueLagoon {
return true;
}
private static boolean isAdjacent(String centerCoords, ArrayList<String> coordsContainer) {
public static boolean isAdjacent(String centerCoords, ArrayList<String> coordsContainer) {
String[] coordsSplit = centerCoords.split(",");
int mainX = Integer.parseInt(coordsSplit[1]); // xCoord for center Coords
int mainY = Integer.parseInt(coordsSplit[0]); // yCoord for center Coords