MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / __init__

Method __init__

codeclash/arenas/halite3/halite3.py:33–39  ·  view source on GitHub ↗
(self, config, **kwargs)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected