Sign in to follow this  
Followers 0
vikingcoder

Hand potential evaluator in autoit.....

7 posts in this topic

Hi !

Since I am developing a poker bot in autoit I thought it would be a nice idea to develop most of it in autoit. So I came to the part where I had to do a hand potential evaluator. I use the same algorithm as in

the article "Opponent modeling in Poker", Billings. But when I try it afterwards it is extremly slow, and yes I do realise that I probably should use C or something. And with slow I mean it takes more than an hour to calculate everything.

I do realize that it is about 5 million comparasions you have to do, but it seems like it should go much faster anyways. So I wonder if any1 else has actually done a hand potential evaluator in AutoIt and what kind of performenace you have with it, =)

Share this post


Link to post
Share on other sites



yes, basically it is 3-4 loops nested, that is how the algorithm works.

Share this post


Link to post
Share on other sites

Sounds like it might be a computer usage issue. Try adding

ProcessSetPriority(@AutoItPID,4)

to allow the script to hog more computer memory.


...will never learn all there is to know about autoit, no worries...i came to the forums :)

Share this post


Link to post
Share on other sites

Sounds like it might be a computer usage issue. Try adding

ProcessSetPriority(@AutoItPID,4)

to allow the script to hog more computer memory.

Correction, to give the script more CPU time.

Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

Correction, to give the script more CPU time.

Well, i knew it did something of this nature to allow it to utilize the CPU better. :)


...will never learn all there is to know about autoit, no worries...i came to the forums :)

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

5 million comparasions

since it is all interpreted code it wont get MUCH faster on 5 mio comparisons

the only thing i could think of - it "might" work to use a hashing algorithm to fill up a hash table to avoid using direct comparisons

- apparently someone has done this

http://senzee.blogspot.com/2006/06/some-perfect-hash.html

or use external c-compiled programs such as those

http://spaz.ca/poker/

Edited by nobbe

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0