texasholdem-engine

The engine for the Texas Hold 'em competition at TheAIGames.com

This version of our Texas Hold 'em engine has been set up for local use, for your own convenience. Note that this does not include the visualizer. Also note that this engine is largely the same as our Omaha engine, but this is the actual version we use on the website.

To compile (Windows, untested):

cd [project folder]
dir /b /s *.java>sources.txt
md classes
javac -d classes @sources.txt
del sources.txt

To compile (Linux):

cd [project folder]
mkdir bin/
javac -d bin/ `find ./ -name '*.java' -regex '^[./A-Za-z0-9]*$'`

To run:

cd [project folder]
java -cp bin com.theaigames.game.texasHoldem.TexasHoldem [your bot1] [your bot2] 2>err.txt 1>out.txt

[your bot1] and [your bot2] could be any command for running a bot process. For instance "java -cp /home/dev/starterbot/bin/ main.BotStarter" or "node /home/user/bot/Bot.js"

Errors will be logged to err.txt, output dump will be logged to out.txt. You can edit the saveGame() method in the main class to output extra stuff like your bot dumps.