(self, config, **kwargs)
| 31 | executable: str = "./game_engine/halite" |
| 32 | |
| 33 | def __init__(self, config, **kwargs): |
| 34 | super().__init__(config, **kwargs) |
| 35 | # Halite3's engine uses --replay-directory (hyphenated), not Halite1/2's --replaydirectory. |
| 36 | # Correct the flag (rather than dropping it) so the .hlt replay lands in the round logs. |
| 37 | self.run_cmd_round: str = self.run_cmd_round.replace( |
| 38 | f"--replaydirectory {self.log_env}", f"--replay-directory {self.log_env}" |
| 39 | ) |
| 40 | |
| 41 | def _run_single_simulation(self, agents: list[Player], idx: int, cmd: str): |
| 42 | """Run a single halite simulation and return the output.""" |
nothing calls this directly
no outgoing calls
no test coverage detected