Advertisement
Guest User

Untitled

a guest
May 6th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1.     def is_free(self, new_location):
  2.         i = int(new_location.x)
  3.         j = int(new_location.y)
  4.         return (i < len(self.locations) and
  5.                 j < len(self.locations[0]) and
  6.                 self.locations[i][j] == ' ')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement