Sunday, December 2, 2012

HU limit bot 1st attempt!

I started working on a poker heads up bot several years ago as a small side project and basically forgot about it until just a couple weeks ago. I had some time on my hand over Thanksgiving and finally have a working version of it.

 It is programmed in R, an open-source statistical computing language with an AI  that is rather simple but is able to get the job done. Play begins at 5/10 limit heads up with you starting as the button. It is clunky and a bit slow and not at all pleasing to the eyes but you should be able to play.

To get the program to work you must follow these simple steps below

1. Download R for free from here - http://cran.r-project.org/bin/windows/base/
2. Open R
3. Go to each link below and copy and paste the code into the R Console (skip the next step if you do this)
3b. Alterinatively, you may save each file below and source in the code from the file menu ('Source R code...')
4. To start the game enter in 'poker( )' into the console and press enter

http://dl.dropbox.com/u/97082677/check.straight.r

http://dl.dropbox.com/u/97082677/comp.move.r

http://dl.dropbox.com/u/97082677/handanalyzer.real.r

http://dl.dropbox.com/u/97082677/hands.ranker.r

http://dl.dropbox.com/u/97082677/poker.r

http://dl.dropbox.com/u/97082677/preflop.ranker.r

http://dl.dropbox.com/u/97082677/your.move.r


As for game play, just follow the instructions and press enter whenever there is a break. You won't be prompted at all times. There are a few times during the hand where the AI takes a second to make its decision and you'll just have to wait. Any feedback on the game and especially your performance against the AI will be greatly appreciated.

No comments: