Skip to content

Commit 8df337b

Browse files
committed
Update configs
1 parent c3ab07b commit 8df337b

5 files changed

Lines changed: 30 additions & 0 deletions

codeclash/utils/generate_confs_transparent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def main(models: str, arenas: str, rounds: int, simulations: int, record_ratio:
3636
config = get_config(rounds, simulations, arena, pair)
3737

3838
# Inform model that it can see opponent's codebases
39+
config["tournament"]["transparent"] = True
3940
config["prompts"]["game_description"] += f"""
4041
In this tournament, you have full access to your opponent(s)' codebase.
4142
You can access their codebase(s) under /{OPPONENT_CODEBASES_DIR_NAME}/.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
tournament:
2+
rounds: 3
3+
transparent: true
4+
game:
5+
name: BattleSnake
6+
sims_per_round: 1000
7+
args:
8+
width: 11
9+
height: 11
10+
browser: false
11+
players:
12+
- agent: dummy
13+
name: p1
14+
- agent: dummy
15+
name: p2
16+
prompts:
17+
game_description: |
18+
You are a software developer ({{player_id}}) competing in a coding game called BattleSnake.
19+
Your bot (`main.py`) controls a snake on a grid-based board.
20+
Snakes collect food, avoid collisions, and try to outlast their opponents.
21+
22+
The game is played in {{rounds}} rounds. For every round, you (and your competitor) edit program code that controls your bot. This is round {{round}}.
23+
After you and your competitor finish editing your codebases, the game is run automatically.
24+
25+
Your task: improve the bot in `main.py`, located in {{working_dir}}.
26+
{{working_dir}} is your codebase, which contains both your bot and supporting assets.

configs/transparent/Halite__claude-sonnet-4-5-20250929__gemini-2.5-pro__r15__s250.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
tournament:
22
rounds: 15
3+
transparent: true
34
game:
45
name: Halite
56
sims_per_round: 250

configs/transparent/Halite__claude-sonnet-4-5-20250929__gpt-5__r15__s250.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
tournament:
22
rounds: 15
3+
transparent: true
34
game:
45
name: Halite
56
sims_per_round: 250

configs/transparent/Halite__gemini-2.5-pro__gpt-5__r15__s250.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
tournament:
22
rounds: 15
3+
transparent: true
34
game:
45
name: Halite
56
sims_per_round: 250

0 commit comments

Comments
 (0)