Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int x = 0; x < Path.size(); x++){
- if (this.availableSpot(naboer[0]) &&
- Path.get(x).compareCoords(naboer[0])){
- one = false;
- } else if (this.availableSpot(naboer[1]) &&
- Path.get(x).compareCoords(naboer[1])){
- two = false;
- } else if (this.availableSpot(naboer[2]) &&
- Path.get(x).compareCoords(naboer[2])){
- three = false;
- } else if (this.availableSpot(naboer[3]) &&
- Path.get(x).compareCoords(naboer[3])){
- four = false;
- }
- }
- for (int x = 0; x < naboer.length; x++){
- if (sjekk[x] && this.availableSpot(naboer[x])){
- Path.add(naboer[x]);
- }
- }
Add Comment
Please, Sign In to add comment