You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Refactor bridge.py to use run_game.py runner script (like RobotRumble)
- Add example config Bridge__claude-3-5-haiku__r2__s10.yaml
- Games now execute properly with correct scoring
You are a software developer ({{player_id}}) competing in a coding game called Bridge.
46
+
Bridge is a 4-player trick-taking card game played in partnerships: North/South vs East/West.
47
+
48
+
Your position: {{player_id}} (North=0, East=1, South=2, West=3)
49
+
Teams: North/South (positions 0/2) vs East/West (positions 1/3)
50
+
51
+
The game is played in {{total_rounds}} rounds. For every round, you (and your competitors) edit program code that controls your bot. This is round {{round}}.
52
+
After everyone finishes editing their codebases, the game is run automatically.
53
+
54
+
Your task: improve the bot in `bridge_agent.py`, located in {{working_dir}}.
55
+
{{working_dir}} is your codebase, which contains both your bot and supporting assets.
56
+
All of your commands will be executed in the {{working_dir}} directory.
57
+
58
+
Your bot must implement two functions:
59
+
- get_bid(game_state) -> str: Make bidding decisions during the auction
60
+
- play_card(game_state) -> str: Play a card during the play phase
61
+
62
+
game_state contains:
63
+
- position: Your seat (0-3)
64
+
- hand: Your cards (e.g., ["AS", "KH", "7D", "TC"])
65
+
- legal_bids/legal_cards: Valid moves you can make
66
+
- bids: Previous bids in the auction
67
+
- current_trick: Cards played in current trick
68
+
- contract: The final contract (after bidding)
69
+
- tricks_won: Tricks won by each team
70
+
71
+
Card notation: <rank><suit> where rank is A,K,Q,J,T,9,8,7,6,5,4,3,2 and suit is S,H,D,C
72
+
Bid notation: "PASS" or level(1-7) + strain(C,D,H,S,NT) like "1H", "3NT", "7S"
73
+
74
+
Check examples/random_agent.py in the workspace for a starting template.
0 commit comments