| 59 | executable: str = "./environment/halite" |
| 60 | |
| 61 | def __init__(self, config, **kwargs): |
| 62 | super().__init__(config, **kwargs) |
| 63 | self.run_cmd_round: str = f"{self.executable} --replaydirectory {self.log_env}" |
| 64 | for arg, val in self.game_config.get("args", self.default_args).items(): |
| 65 | if isinstance(val, bool): |
| 66 | if val: |
| 67 | self.run_cmd_round += f" --{arg}" |
| 68 | else: |
| 69 | self.run_cmd_round += f" --{arg} {val}" |
| 70 | |
| 71 | def _run_single_simulation(self, agents: list[Player], idx: int, cmd: str): |
| 72 | """Run a single halite simulation and return the output.""" |