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

Method __init__

codeclash/arenas/halite/halite.py:61–69  ·  view source on GitHub ↗
(self, config, **kwargs)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected