Skip to content

Commit 1237175

Browse files
committed
Fix maplocation equals
1 parent 56f43af commit 1237175

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

battlecode25/engine/game/game.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def connected_by_paint(self, robot_loc: MapLocation, tower_loc: MapLocation, tea
278278
cardinal_directions = [Direction.NORTH, Direction.SOUTH, Direction.EAST, Direction.WEST]
279279
while queue:
280280
loc = queue.pop(0)
281-
if loc.equals(tower_loc):
281+
if loc == tower_loc:
282282
return True
283283

284284
if loc in visited or self.team_from_paint(self.paint[self.loc_to_index(loc)]) != team:

0 commit comments

Comments
 (0)