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

Method execute_round

codeclash/arenas/dummy/dummy.py:15–19  ·  view source on GitHub ↗
(self, agents: list[Player])

Source from the content-addressed store, hash-verified

13 submission: str = "main.py"
14
15 def execute_round(self, agents: list[Player]) -> None:
16 args = [f"/{agent.name}/{self.submission}" for agent in agents]
17 cmd = f"python engine.py {' '.join(args)} -r {self.game_config['sims_per_round']} > {self.log_env / DUMMY_LOG};"
18 self.logger.info(f"Running game: {cmd}")
19 assert_zero_exit_code(self.environment.execute(cmd))
20
21 def get_results(self, agents: list[Player], round_num: int, stats: RoundStats):
22 with open(self.log_round(round_num) / DUMMY_LOG) as f:

Callers

nothing calls this directly

Calls 2

assert_zero_exit_codeFunction · 0.90
executeMethod · 0.45

Tested by

no test coverage detected