Anteater Poker
A networked Texas Hold'em variant built in C and GTK 3. I developed server-side bots that fill seats and take over disconnected players.
- Type
- Course Project
- Year
- 2026
- Role
- Server-side bot development
- Stack
- C, GTK 3, cJSON, Sockets
About the project
Anteater Poker is the second EECS 22L project from our six-person team. It is a networked Texas Hold’em variant with UCI Anteater-themed characters and abilities. The C and GTK 3 application includes room codes, chat, emotes, turn timers and a scoreboard.
I developed the server-side bots. They fill empty seats and take over when a player disconnects. A returning player can resume control of the same seat.
Decisions at the table
The bot isn’t actually that sophisticated. It only covers the most basic behavior and was never tuned to win all the time. I was busy then, and writing more wouldn’t have earned extra credit, so I stopped there. It does roughly the sensible thing in each situation. It’s a bot that isn’t too dumb.
Before the flop, the bot evaluates pairs, high cards and suited connectors. After the flop, it checks for pairs and three-of-a-kind, classifying the hand as weak, medium or strong. It compares the cost of calling with its remaining chips and the pot, then chooses to check, call, raise or fold.
Bot decisions are encoded as commands in the server’s JSON protocol, using cJSON, and go through the same action-handling code as a player’s input. Turn order, game state and character abilities are still handled by the existing server flow.
My contribution
Decision policy
Hand strength, pot size, stack size and the cost of calling determine whether a bot checks, calls, raises or folds.
Server integration
Bots send JSON commands through the same action path as human players and hand control back when a player reconnects.