| 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() |