Skip to content

jlim5634/Liars_DiceBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Liar’s Dice Bot

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.


Features

  • 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 (1 counts as any value)
  • Adaptive strategy as the game state changes
  • Fast, sub-second decision making

Overview

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.


How to Run

Compile

javac DiceClient.java

Run

java DiceClient

Example: java DiceClient 192.168.1.10 5000

The bot will connect to the Dealer server and begin playing automatically.

About

A Java bot for a multiplayer dice game. It connects to a dealer server, receives dice values each round, and automatically makes strategic bids, bluffs, and heurisitcs based on probability and game state. This simulates intelligent gameplay in real time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages