Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def is_free(self, new_location):
- i = int(new_location.x)
- j = int(new_location.y)
- return (i < len(self.locations) and
- j < len(self.locations[0]) and
- self.locations[i][j] == ' ')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement