From 1237175a8915e8044e6a469f84a5726fbe9ed948 Mon Sep 17 00:00:00 2001 From: hank Date: Mon, 6 Jan 2025 17:06:20 -0600 Subject: [PATCH] Fix maplocation equals --- battlecode25/engine/game/game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/battlecode25/engine/game/game.py b/battlecode25/engine/game/game.py index 9fe806c..8bc8701 100644 --- a/battlecode25/engine/game/game.py +++ b/battlecode25/engine/game/game.py @@ -278,7 +278,7 @@ def connected_by_paint(self, robot_loc: MapLocation, tower_loc: MapLocation, tea cardinal_directions = [Direction.NORTH, Direction.SOUTH, Direction.EAST, Direction.WEST] while queue: loc = queue.pop(0) - if loc.equals(tower_loc): + if loc == tower_loc: return True if loc in visited or self.team_from_paint(self.paint[self.loc_to_index(loc)]) != team: