Skip to content

Commit e82a97c

Browse files
committed
Update figgie test config with new interface
- Use 'ask' instead of 'offer' action type - Add state description with order book interface - Document simultaneous tick trading model - Support both 4 and 5 player games
1 parent 66e3f50 commit e82a97c

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

configs/test/figgie.yaml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,35 @@ prompts:
1818
Figgie is a card trading game invented at Jane Street that simulates open-outcry commodities trading.
1919
2020
Game Rules:
21-
- 4 players, each starting with $350 and 10 cards (40 cards total)
21+
- 4 or 5 players, each starting with $350
22+
- 4 players: $50 ante, 10 cards each
23+
- 5 players: $40 ante, 8 cards each
24+
- Pot is always $200
2225
- Deck: one 12-card suit, two 10-card suits, one 8-card suit
2326
- Goal suit: same color as 12-card suit, contains 8 or 10 cards (secret until end)
24-
- Players ante $50 each to form a $200 pot
2527
- At end: $10 per goal suit card, remainder to player(s) with most goal suit cards
2628
29+
Trading Model (Simultaneous Tick):
30+
- Each tick, ALL players are polled for their action
31+
- Actions are executed in random order (simulates racing to the order book)
32+
- Order books cleared after each trade (per official Figgie rules)
33+
2734
Your bot (main.py) must implement:
2835
def get_action(state: dict) -> dict
2936
37+
state contains:
38+
- position: your player index
39+
- hand: dict of suit -> count of cards you hold
40+
- money: your current money
41+
- books: dict of suit -> {bid: {price, player} or None, ask: {price, player} or None, last_trade}
42+
- trades: list of completed trades
43+
- num_players: number of players (4 or 5)
44+
- tick: current tick number
45+
3046
Return one of:
3147
- {"type": "pass"}
3248
- {"type": "bid", "suit": "spades", "price": 5}
33-
- {"type": "offer", "suit": "spades", "price": 10}
49+
- {"type": "ask", "suit": "spades", "price": 10}
3450
- {"type": "buy", "suit": "spades"}
3551
- {"type": "sell", "suit": "spades"}
3652

0 commit comments

Comments
 (0)