Guest User

Untitled

a guest
Jan 19th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. for (int x = 0; x < Path.size(); x++){
  2. if (this.availableSpot(naboer[0]) &&
  3. Path.get(x).compareCoords(naboer[0])){
  4. one = false;
  5. } else if (this.availableSpot(naboer[1]) &&
  6. Path.get(x).compareCoords(naboer[1])){
  7. two = false;
  8. } else if (this.availableSpot(naboer[2]) &&
  9. Path.get(x).compareCoords(naboer[2])){
  10. three = false;
  11. } else if (this.availableSpot(naboer[3]) &&
  12. Path.get(x).compareCoords(naboer[3])){
  13. four = false;
  14. }
  15. }
  16. for (int x = 0; x < naboer.length; x++){
  17. if (sjekk[x] && this.availableSpot(naboer[x])){
  18. Path.add(naboer[x]);
  19. }
  20. }
Add Comment
Please, Sign In to add comment