Create BattleCodeArena instance.
(self, tmp_log_dir, minimal_config)
| 110 | |
| 111 | @pytest.fixture |
| 112 | def arena(self, tmp_log_dir, minimal_config): |
| 113 | """Create BattleCodeArena instance.""" |
| 114 | config = minimal_config.copy() |
| 115 | config["game"]["name"] = "BattleCode" |
| 116 | config["game"]["sims_per_round"] = 3 |
| 117 | arena = BattleCode25Arena.__new__(BattleCode25Arena) |
| 118 | arena.submission = f"src/{BC_FOLDER}" |
| 119 | arena.log_local = tmp_log_dir |
| 120 | arena.config = config |
| 121 | arena.logger = type("Logger", (), {"debug": lambda self, msg: None, "info": lambda self, msg: None})() |
| 122 | return arena |
| 123 | |
| 124 | def _create_sim_log(self, round_dir, idx: int, winner_key: str, is_coin_flip: bool = False): |
| 125 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected