Skip to content

Commit 5ce07c2

Browse files
committed
Add refs, yaml file
1 parent 240cf30 commit 5ce07c2

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

codeclash/arenas/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from codeclash.arenas.arena import CodeArena
2+
from codeclash.arenas.battlecode24.battlecode24 import BattleCode24Arena
23
from codeclash.arenas.battlecode25.battlecode25 import BattleCode25Arena
34
from codeclash.arenas.battlesnake.battlesnake import BattleSnakeArena
45
from codeclash.arenas.bridge.bridge import BridgeArena
@@ -14,6 +15,7 @@
1415
from codeclash.arenas.robotrumble.robotrumble import RobotRumbleArena
1516

1617
ARENAS = [
18+
BattleCode24Arena,
1719
BattleCode25Arena,
1820
BattleSnakeArena,
1921
BridgeArena,

configs/test/battlecode24.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
tournament:
2+
rounds: 3
3+
game:
4+
name: BattleCode24
5+
sims_per_round: 20
6+
args:
7+
maps: quack
8+
players:
9+
- agent: dummy
10+
name: p1
11+
- agent: dummy
12+
name: p2
13+
prompts:
14+
game_description: |
15+
You are a software developer ({{player_id}}) competing in a coding game called BattleCode24.
16+
Battlecode 2024: Breadwars is a real-time strategy game where your Java bot controls a team of robots competing to capture the opponent's flags.
17+
Your mission: capture all 3 of the opponent's flags before they capture yours. Robots can attack, heal, build traps, dig/fill terrain, and specialize in different skills through experience.
18+
The game features a setup phase (first 200 rounds) where teams are separated by a dam, followed by open combat. Robots gain experience and level up their attack, build, and heal specializations.
19+
20+
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}}.
21+
After you and your competitor finish editing your codebases, the game is run automatically.
22+
23+
Your task: improve the bot in `src/mysubmission`, located in {{working_dir}}.
24+
{{working_dir}} is your codebase, which contains both your bot and supporting assets.

0 commit comments

Comments
 (0)