An autonomous Java bot for multiplayer Liar’s Dice that connects to a Dealer server and plays the game automatically. The program receives game state updates over the network and makes probabilistic bidding and bluffing decisions without any human interaction.
- Fully autonomous Liar’s Dice player (no UI)
- Real-time socket communication with a Dealer server
- Protocol-compliant command parsing and responses
- Probability-based bidding and BS-calling logic
- Wildcard-aware dice handling (
1counts as any value) - Adaptive strategy as the game state changes
- Fast, sub-second decision making
Liar’s Dice is played over multiple rounds with hidden dice. Each player starts with five six-sided dice and takes turns either increasing the current bid or calling BS on the previous bid. Dice with value 1 act as wildcards. When a bid is challenged, the Dealer checks all dice and the loser of the challenge loses one die. Players are eliminated when they run out of dice, and the last remaining player wins.
This bot participates in the game by communicating with the Dealer through a socket-based protocol, analyzing its own dice and the current bid, and choosing actions based on probability and game state.
javac DiceClient.java
java DiceClient
Example: java DiceClient 192.168.1.10 5000
The bot will connect to the Dealer server and begin playing automatically.