Commit 3661779
Fix ladder player names for RoboCode; bump make_robocode sims to 300
`ladder make` set the per-player name to the raw branch_init (e.g.
`human/robocode/walls`), which the RoboCode arena turns into an on-disk dir,
a Java package via `sed s/custom/<name>/`, and a robot-selector token. Slashes
broke the sed (terminating the s/// command) and produced invalid robot names,
so battles loaded 0 robots and get_results crashed on max() of an empty score
dict. Sanitizing to `robocode_<bot>` still failed: RoboCode reserves the
`robocode` package namespace for its engine, so its robot classloader refuses
any robot whose package starts with it (ClassNotFoundException at battle time).
Add `_player_slug()` (shared by make + run) that strips the `human/` prefix and
a leading path segment equal to the game name, yielding a bare `<bot>` package
(e.g. `human/robocode/walls` -> `walls`). Non-RoboCode branches
(`human/<author>/<bot>`, `human/<bot>`) are unaffected -- their leading segment
never matches the game name, so slugs are identical to before.
Bump make_robocode.yaml sims_per_round 100 -> 300 for lower Elo variance
(~41s/pair solo, ~25s/pair throughput under -w 6; still far under the 5-min/pair
budget) and refresh the cost comment with measured numbers.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 1e00795 commit 3661779
2 files changed
Lines changed: 31 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
21 | 42 | | |
22 | 43 | | |
23 | 44 | | |
| |||
83 | 104 | | |
84 | 105 | | |
85 | 106 | | |
| 107 | + | |
| 108 | + | |
86 | 109 | | |
87 | 110 | | |
88 | 111 | | |
89 | 112 | | |
90 | 113 | | |
91 | 114 | | |
92 | | - | |
| 115 | + | |
93 | 116 | | |
94 | | - | |
| 117 | + | |
95 | 118 | | |
96 | 119 | | |
97 | 120 | | |
| |||
157 | 180 | | |
158 | 181 | | |
159 | 182 | | |
160 | | - | |
| 183 | + | |
161 | 184 | | |
162 | 185 | | |
163 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | | - | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
0 commit comments