Implementation of Blind Man's Bluff with bots! USACO 2012
Try the FAQ/Wiki.
If you need to update your local copy, navigate to BlindCowsBluff/
and try:
git pull origin master
The standard version is simply high card wins. Each player is dealt one card that he displays to all other players (traditionally stuck to the forehead facing outwards). This is followed by a round of betting. Players attempt to guess if they have the highest card based on the distribution of visible cards and how other players are betting.
(from Wikipedia)
Begin by cloning a copy of the Git repo:
git clone git://github.com/authorblues/BlindCowsBluff.git
Go to the base/
directory and compile the driver:
cd BlindCowsBluff/base
make
This will create the ncurses Blind Cow's Bluff driver.
Next, build the example bots to help with testing:
cd ../bots
make
Make a new bot to begin working. A helper script has been provided for this purpose.
cd ..
bash setup-bot.sh "My Awesome Bot"
This will create a new directory bot-MyAwesomeBot/