Skip to content

Commit 12e3921

Browse files
committed
Test that 4 player works
1 parent 09ea109 commit 12e3921

11 files changed

Lines changed: 116 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
tournament:
2+
rounds: 3
3+
game:
4+
name: BattleSnake
5+
sims_per_round: 20
6+
args:
7+
width: 11
8+
height: 11
9+
browser: false
10+
players:
11+
- agent: dummy
12+
name: p1
13+
- agent: dummy
14+
name: p2
15+
- agent: dummy
16+
name: p3
17+
- agent: dummy
18+
name: p4
19+
prompts:
20+
game_description: |
21+
You are a software developer ({{player_id}}) competing in a coding game called BattleSnake.
22+
Your bot (`main.py`) controls a snake on a grid-based board.
23+
Snakes collect food, avoid collisions, and try to outlast their opponents.
24+
25+
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}}.
26+
After you and your competitor finish editing your codebases, the game is run automatically.
27+
28+
Your task: improve the bot in `main.py`, located in {{working_dir}}.
29+
{{working_dir}} is your codebase, which contains both your bot and supporting assets.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
tournament:
2+
rounds: 3
3+
game:
4+
name: CoreWar
5+
sims_per_round: 50
6+
players:
7+
- agent: dummy
8+
name: p1
9+
- agent: dummy
10+
name: p2
11+
- agent: dummy
12+
name: p3
13+
- agent: dummy
14+
name: p4
15+
prompts:
16+
game_description: |
17+
You are a software developer ({{player_id}}) competing in a coding game called CoreWar.
18+
CoreWar is a programming battle where you write "warriors" in an assembly-like language called Redcode to compete within a virtual machine (MARS), aiming to eliminate your rivals by making their code self-terminate.
19+
Victory comes from crafting clever tactics—replicators, scanners, bombers—that exploit memory layout and instruction timing to control the core.
20+
21+
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}}.
22+
After you and your competitor finish editing your codebases, the game is run automatically.
23+
24+
Your task: improve the bot in `warriors/warrior.red`, located in {{working_dir}}.
25+
{{working_dir}} is your codebase, which contains both your bot and supporting assets.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
tournament:
2+
rounds: 3
3+
game:
4+
name: HuskyBench
5+
sims_per_round: 30
6+
players:
7+
- agent: dummy
8+
name: p1
9+
- agent: dummy
10+
name: p2
11+
- agent: dummy
12+
name: p3
13+
- agent: dummy
14+
name: p4
15+
prompts:
16+
game_description: |
17+
You are a software developer ({{player_id}}) competing in a coding game called CoreWar.
18+
CoreWar is a programming battle where you write "warriors" in an assembly-like language called Redcode to compete within a virtual machine (MARS), aiming to eliminate your rivals by making their code self-terminate.
19+
Victory comes from crafting clever tactics—replicators, scanners, bombers—that exploit memory layout and instruction timing to control the core.
20+
21+
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}}.
22+
After you and your competitor finish editing your codebases, the game is run automatically.
23+
24+
Your task: improve the bot in `warriors/warrior.red`, located in {{working_dir}}.
25+
{{working_dir}} is your codebase, which contains both your bot and supporting assets.

0 commit comments

Comments
 (0)