|XP is just a number|
Poker Datamineby bennierounder (Acolyte)
|on Oct 02, 2013 at 14:00 UTC||Need Help??|
bennierounder has asked for the
wisdom of the Perl Monks concerning the following question:
Not been around much lately and I haven't really done much programming for a while. Only a beginner anyway.
I am wanting to build myself a poker bot that can make decisions based on the way I play.
I have an idea of what I will do, but I have never even tried datamining before and do not know how to do it.
I figured by changing my settings to allow dealer chat to be included in the chat window that I could simply grab this info. I'm on ipoker bet365.
I want to read the chat box (using regular expressions to pick the bits I want) and then send the data to a database somehow. The dealer chat contains all the information I need to make a decision. The problem I have is getting the data from the ipoker app.
can someone point me in the right direction please where to look to learn how to do what I need to do.
There are many sites offering this data for purchase, and many programs that get it for me, but I want my own data so I can maintain my bot totally myself. I want it to be mine from start to finish.
I am obviously not asking you guys to do it for me, just to point me in the right direction so I can learn how to do it myself.
Things I need to do;
Set up one or two postgres sql databases on a server so they can be accessed from another machine if needs be.
scan a poker table that I am sat at and record each players individual move (datamine the dealer chat) weather they fold, raise/reraise or call recording the hand number and the table number, chip stacks of players, etc
Put this data into a data structure (open tp sugguestions). A hand number and table number will be needed to be used to keep each set of information together. (Thinking array of data inside a hash somehow maybe)
send this data to the postgres sql databases. maybe sending to a file within a folder on my computer, could be another way, but I think the database would be better.
(I'm guessong CGI module will pay a part somewhere, used it before but going to refresh myself again before I start, been a while).
""""build a program using perl that can reach into the database and then analyse the hand using information in the database (I will teach it good hands and bad hands and learn it how to use the information in the database to make a decision)"""""
The above between """"" = comforable solving this part
Based on my findings I need to update the databse/s then tell my computer to call, raise/reraise or fold. I can do this by pressing one of three keys F1 F2 F3. F1 fold, F2 call, F3 raise/reraise and if it's F3 raise/reraise there is a text box to enter the amount, which I will have to somehow access too. This is where the hand number and table number will be useful, because it will be able to make the right move on the right table.
That's the basic outline of the idea and I am very excited on the project and even if it doesn't win much, at least I've increased my computer knowledge a little more.
I use hostgator for my server (when I need one) so I am hoping their support team will be able to give me some info on getting live with the databases but any help on this would be much appreciated.
I will be more than happy if someone can please point me in the right direction of where to look for this information.
I'm sorry for the long message I'm just about a beginner, but once it's all set up and I have the basic program working (information leaving ipoker, into database, into perl, back to database and then carrying out a command on ipoker) I feel I will be ok at learning Perl how to play poker.
I will name the bot when I think of a name and anyone that helps me will have access to the code should they require it for they're own personal use.
I have a good plan/idea on how this will work and I really can't wait to make a start on it.
Thanks for reading, please reply back.