Two Plus Two Newer Archives  

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 08-23-2007, 12:00 PM
Masterplan Masterplan is offline
Member
 
Join Date: Aug 2006
Posts: 46
Default Re: 7 Card Hand Evaluators

[ QUOTE ]


Well, by the looks of it you have the hard part done. I use the VS2005 myself, so you shouldn't have too much trouble. Obviously it can't find the file... Perhaps if you look to see where it is on your hard drive and point to it directly. instead of the :
FILE * fin = fopen("..\\HandRanks.dat", "rb");
use:
FILE * fin = fopen("c:\\directory\\path\\you\\founditin\\HandRa nks.dat", "rb");
if (!fin) printf("I Missed it Again!!"); // if you see this message, you still aren't opening the file!

Have a Great Day!!
Ray...


[/ QUOTE ]

found the problem. for some reason the write in HandRankSetup failed if it was over a certain size. so i split the HR array into 2 parts and wrote them a part at a time.

BAD!! = 0
High Card = 23294460
Pair = 58627800
Two Pair = 31433400
Three of a Kind = 6461620
Straight = 6180020
Flush = 4047644
Full House = 3473184
Four of a Kind = 224848
Straight Flush = 41584
Total Hands = 133784560

Validation seconds = 0.6090
Total HighPrecision Clocks = 2230899
HighPrecision clocks per lookup = 0.016675

done [img]/images/graemlins/smile.gif[/img]
thanks again for the awesome evaluator code
Reply With Quote
 


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:43 PM.


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