Skip to content

Commit 8d876eb

Browse files
committed
Fix: Ensure failed to start player list is reset after round
Closes #65
1 parent 2126307 commit 8d876eb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

codeclash/games/battlesnake/battlesnake.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def _run_single_simulation(self, player2port: dict[str, int], idx: int) -> str:
6969
return output["output"]
7070

7171
def execute_round(self, agents: list[Player]):
72+
self._failed_to_start_player = []
7273
assert len(agents) > 1, "Battlesnake requires at least two players"
7374
self.logger.debug("Starting game servers")
7475
player2port = {}

0 commit comments

Comments
 (0)