Skip to content

Commit ac16a29

Browse files
committed
Fix RobotRumble
1 parent ce5dfa4 commit ac16a29

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

codeclash/games/robotrumble/robotrumble.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ def _run_single_simulation(self, agents: list[Player], idx: int, cmd: str):
4242
response = self.environment.execute(cmd, timeout=120)
4343
except subprocess.TimeoutExpired:
4444
self.logger.warning(f"RobotRumble simulation {idx} timed out: {cmd}")
45-
return
45+
return ""
4646
if response["returncode"] != 0:
4747
self.logger.warning(
4848
f"RobotRumble simulation {idx} failed with exit code {response['returncode']}:\n{response['output']}"
4949
)
50+
return response["output"]
5051

5152
def execute_round(self, agents: list[Player]):
5253
self.logger.info(f"Running game with players: {[agent.name for agent in agents]}")

0 commit comments

Comments
 (0)