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

Method arena

tests/arenas/test_battlecode25.py:112–122  ·  view source on GitHub ↗

Create BattleCodeArena instance.

(self, tmp_log_dir, minimal_config)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected