Skip to content

Commit 8852260

Browse files
john-b-yangclaude
andcommitted
Centralize ladder win condition in shared ladder_rules.yaml
Every ladder run config duplicated the same ladder_rules block. Extract it to configs/ablations/ladder/ladder_rules.yaml (min_round_wins: 2, win_last_k: 0) and include it from all run configs so the win condition lives in one place. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent b5fa030 commit 8852260

20 files changed

Lines changed: 27 additions & 57 deletions

configs/ablations/ladder/battlesnake.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
# rung until it loses. Run: uv run codeclash ladder run configs/ablations/ladder/battlesnake.yaml
55
tournament:
66
rounds: 5
7-
ladder_rules:
8-
min_round_wins: 2 # rounds to win to advance (1..total rounds)
9-
win_last_k: 0 # must win last K (0 = off, <= min_round_wins)
7+
ladder_rules: !include ablations/ladder/ladder_rules.yaml
108
game:
119
name: BattleSnake
1210
sims_per_round: 250

configs/ablations/ladder/battlesnake__gemini_3_5_flash.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
# uv run codeclash ladder run configs/ablations/ladder/battlesnake__gemini_3_5_flash.yaml
33
tournament:
44
rounds: 5
5-
ladder_rules:
6-
min_round_wins: 2 # rounds to win to advance (1..total rounds)
7-
win_last_k: 0 # must win last K (0 = off, <= min_round_wins)
5+
ladder_rules: !include ablations/ladder/ladder_rules.yaml
86
game:
97
name: BattleSnake
108
sims_per_round: 250

configs/ablations/ladder/battlesnake__gpt_5_5.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
# uv run codeclash ladder run configs/ablations/ladder/battlesnake__gpt_5_5.yaml
33
tournament:
44
rounds: 5
5-
ladder_rules:
6-
min_round_wins: 2 # rounds to win to advance (1..total rounds)
7-
win_last_k: 0 # must win last K (0 = off, <= min_round_wins)
5+
ladder_rules: !include ablations/ladder/ladder_rules.yaml
86
game:
97
name: BattleSnake
108
sims_per_round: 250

configs/ablations/ladder/battlesnake__opus_4_7.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
# uv run codeclash ladder run configs/ablations/ladder/battlesnake__opus_4_7.yaml
33
tournament:
44
rounds: 5
5-
ladder_rules:
6-
min_round_wins: 2 # rounds to win to advance (1..total rounds)
7-
win_last_k: 0 # must win last K (0 = off, <= min_round_wins)
5+
ladder_rules: !include ablations/ladder/ladder_rules.yaml
86
game:
97
name: BattleSnake
108
sims_per_round: 250

configs/ablations/ladder/battlesnake__opus_4_8.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
# uv run codeclash ladder run configs/ablations/ladder/battlesnake__opus_4_8.yaml
33
tournament:
44
rounds: 5
5-
ladder_rules:
6-
min_round_wins: 2 # rounds to win to advance (1..total rounds)
7-
win_last_k: 0 # must win last K (0 = off, <= min_round_wins)
5+
ladder_rules: !include ablations/ladder/ladder_rules.yaml
86
game:
97
name: BattleSnake
108
sims_per_round: 250

configs/ablations/ladder/battlesnake__sonnet_5.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
# uv run codeclash ladder run configs/ablations/ladder/battlesnake__sonnet_5.yaml
33
tournament:
44
rounds: 5
5-
ladder_rules:
6-
min_round_wins: 2 # rounds to win to advance (1..total rounds)
7-
win_last_k: 0 # must win last K (0 = off, <= min_round_wins)
5+
ladder_rules: !include ablations/ladder/ladder_rules.yaml
86
game:
97
name: BattleSnake
108
sims_per_round: 250

configs/ablations/ladder/battlesnake_llama_smoke.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
# uv run codeclash ladder run configs/ablations/ladder/battlesnake_llama_smoke.yaml -c
66
tournament:
77
rounds: 2
8-
ladder_rules:
9-
min_round_wins: 1 # rounds to win to advance (1..total rounds)
10-
win_last_k: 0 # must win last K (0 = off, <= min_round_wins)
8+
ladder_rules: !include ablations/ladder/ladder_rules.yaml
119
game:
1210
name: BattleSnake
1311
sims_per_round: 10

configs/ablations/ladder/corewar.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
tournament:
22
rounds: 5
3-
ladder_rules:
4-
min_round_wins: 2 # rounds to win to advance (1..total rounds)
5-
win_last_k: 0 # must win last K (0 = off, <= min_round_wins)
3+
ladder_rules: !include ablations/ladder/ladder_rules.yaml
64
game:
75
name: CoreWar
86
sims_per_round: 2000

configs/ablations/ladder/corewar__gemini_3_5_flash.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
# uv run codeclash ladder run configs/ablations/ladder/corewar__gemini_3_5_flash.yaml
33
tournament:
44
rounds: 5
5-
ladder_rules:
6-
min_round_wins: 2 # rounds to win to advance (1..total rounds)
7-
win_last_k: 0 # must win last K (0 = off, <= min_round_wins)
5+
ladder_rules: !include ablations/ladder/ladder_rules.yaml
86
game:
97
name: CoreWar
108
sims_per_round: 2000

configs/ablations/ladder/corewar__gpt_5_5.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
# uv run codeclash ladder run configs/ablations/ladder/corewar__gpt_5_5.yaml
33
tournament:
44
rounds: 5
5-
ladder_rules:
6-
min_round_wins: 2 # rounds to win to advance (1..total rounds)
7-
win_last_k: 0 # must win last K (0 = off, <= min_round_wins)
5+
ladder_rules: !include ablations/ladder/ladder_rules.yaml
86
game:
97
name: CoreWar
108
sims_per_round: 2000

0 commit comments

Comments
 (0)