Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #181  
Old 01-17-2007, 05:11 PM
thomash thomash is offline
Junior Member
 
Join Date: Jan 2007
Posts: 3
Default Re: 7 Card Hand Evaluators

I am building a bot for two player games only at the moment. So the multiple players aren't an obstacle.

If I did have multiple opponents couldn't I just take the probability to the power of how many players there are and still have fairly good estimate?

Thomas
Reply With Quote
  #182  
Old 01-17-2007, 06:12 PM
Gullanian Gullanian is offline
Senior Member
 
Join Date: Dec 2006
Posts: 1,748
Default Re: 7 Card Hand Evaluators

That would be a reasonable estimate, but because the opponents hands are independant of each other the numbers will not be exact.
Reply With Quote
  #183  
Old 01-18-2007, 10:32 AM
thomash thomash is offline
Junior Member
 
Join Date: Jan 2007
Posts: 3
Default Re: 7 Card Hand Evaluators

I assume you mean because opponents hands are NOT independent of each other the numbers will not be exact.

Thomas
Reply With Quote
  #184  
Old 01-18-2007, 12:39 PM
Gullanian Gullanian is offline
Senior Member
 
Join Date: Dec 2006
Posts: 1,748
Default Re: 7 Card Hand Evaluators

Sorry, my mistake, you are right, because they are not independant it means powering will be incorrect.

I am hopefully going to run some exhaustive analysis on 2 opponents to see exactly how inaccurate powering down will be, although that will entail:

(50 choose 5) * (45 choose 2) * (43 choose 2) = 1,894,107,877,200

game simulations (1.8 trillion), so would take a reasonable amount of time to compute on a desktop PC!
Reply With Quote
  #185  
Old 01-19-2007, 01:36 PM
chrisj1948 chrisj1948 is offline
Junior Member
 
Join Date: Jan 2007
Location: UK
Posts: 2
Default Re: 7 Card Hand Evaluators

The error introduced by exponentiating from a win probability against a single opponent to generate a probability against several gets even worse if you have set your opponents on a limited range of cards

Just as a quick example. Where the opponents had been set to have handranks in the top 25% a hand which gives you a 30% chance of winning against one opponent drops to 17% against 3 when using a Monte Carlo iterator for the calculation, but is about 3% if you exponentiate.

Regards
Chris
Reply With Quote
  #186  
Old 01-20-2007, 12:42 PM
Steve Brecher Steve Brecher is offline
Member
 
Join Date: Sep 2004
Posts: 45
Default Re: 7 Card Hand Evaluators

I ported the table-lookup evaluator introduced in this thread to Java. Below are timings for the C and Java versions for it ("Loookup"); C and Java timings for HandEval, my evaluator; and C timings for Eval_N from pokersource. These results are from a Pentium 4 3.4G processor. The Java runs used Sun's JVM 6; where the -server JVM switch improved the timing it is noted. The Java source and class files are available at http://www.stevebrecher.com/misc/TestEvaluators.jar

<font class="small">Code:</font><hr /><pre>1,000,000 pre-generated random hands, same for each evaluator (but different hands [different RNGs] for C and Java):
C:
HandEval: 0.0310 sec., 108 CPU cycles/hand
Lookup: 0.5780 sec., 1958 CPU cycles/hand
Eval_N 0.0310 sec., 92 CPU cycles/hand
Java:
HandEval: 0.0927 sec. (single-threaded)
HandEval: 0.0924 sec. (dual-threaded, with -server)
Lookup: 0.6097 sec. (single-threaded)
Lookup: 0.4271 sec. (dual-threaded)

52c7 enumeration:
C:
HandEval: 3.2810 sec., 83 CPU cycles/hand
Lookup: 0.6410 sec., 16 CPU cycles/hand
Eval_N: 3.2030 sec., 81 CPU cycles/hand
Java:
HandEval: 5.5252 sec. (single-threaded, with -server)
HandEval: 6.3874 sec. (dual-threaded, with -server)
Lookup: 0.8572 sec. (single-threaded)
Lookup: 1.1239 sec. (dual-threaded, with -server)</pre><hr />
Reply With Quote
  #187  
Old 01-23-2007, 08:40 AM
Jurrr Jurrr is offline
Senior Member
 
Join Date: Dec 2006
Posts: 2,715
Default Re: 7 Card Hand Evaluators

Steve, very much appreciated. Does it work faster than your "old" one?
Reply With Quote
  #188  
Old 01-23-2007, 07:15 PM
Steve Brecher Steve Brecher is offline
Member
 
Join Date: Sep 2004
Posts: 45
Default Re: 7 Card Hand Evaluators

[ QUOTE ]
Steve, very much appreciated. Does it work faster than your "old" one?

[/ QUOTE ]Which? The C/Java HandEval? The C version is about 12% faster than the Dec 2006 version than is on my web site; I'll update the latter by and by. The Java version hasn't changed.

Edit, P.S. The 12% is for a particular Hold 'Em Showdown scenario that I've been using for benchmarking.
Reply With Quote
  #189  
Old 02-01-2007, 06:00 AM
theblitz theblitz is offline
Senior Member
 
Join Date: Sep 2004
Location: Israel
Posts: 1,920
Default Re: 7 Card Hand Evaluators

Steve,
I wanted to send you a PM because I need to ask you something about your calculator and would rather not post here.

How can I get in contact with you?
Reply With Quote
  #190  
Old 02-01-2007, 08:03 AM
ThirdEye ThirdEye is offline
Junior Member
 
Join Date: Aug 2006
Posts: 8
Default Re: 7 Card Hand Evaluators

wow, i just spent two hours working myself through this excellent thread.

i'm working on some pokertools myself using the c# poker-eval port from keith and always thought its "fast enough". the magnitude of improvement you guys worked out here is really amazing.

two thumbs up... great work
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:11 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.