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

Method execute_round

codeclash/arenas/corewar/corewar.py:42–46  ·  view source on GitHub ↗
(self, agents: list[Player])

Source from the content-addressed store, hash-verified

40 def _run_single_simulation(self, agents: list[Player], idx: int):
41 # Shift agents by idx to vary starting positions
42 agents = agents[idx:] + agents[:idx]
43 args = [f"/{agent.name}/{self.submission}" for agent in agents]
44 n = self.game_config["sims_per_round"]
45 log = self.log_env / COREWAR_LOG.format(idx=idx)
46 if idx == 0:
47 # Record R scored battles with -T + the rest plain; both score blocks append to one
48 # log (get_results sums them), so replays are genuine scored battles. i == agents[i].
49 r = self._record_count()

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected