vikingcoder Posted June 24, 2008 Share Posted June 24, 2008 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, =) Link to comment Share on other sites More sharing options...
James Posted June 24, 2008 Share Posted June 24, 2008 Are you using a loop? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
vikingcoder Posted June 24, 2008 Author Share Posted June 24, 2008 yes, basically it is 3-4 loops nested, that is how the algorithm works. Link to comment Share on other sites More sharing options...
Rydextillxixdiex Posted June 24, 2008 Share Posted June 24, 2008 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 :) Link to comment Share on other sites More sharing options...
monoceres Posted June 24, 2008 Share Posted June 24, 2008 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! Link to comment Share on other sites More sharing options...
Rydextillxixdiex Posted June 24, 2008 Share Posted June 24, 2008 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 :) Link to comment Share on other sites More sharing options...
nobbe Posted June 25, 2008 Share Posted June 25, 2008 (edited) 5 million comparasionssince it is all interpreted code it wont get MUCH faster on 5 mio comparisonsthe 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.htmlor use external c-compiled programs such as thosehttp://spaz.ca/poker/ Edited June 25, 2008 by nobbe Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now