Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software

Reply
 
Thread Tools Display Modes
  #1  
Old 08-07-2007, 11:52 AM
Masterplan Masterplan is offline
Member
 
Join Date: Aug 2006
Posts: 46
Default Re: 7 Card Hand Evaluators

been trying to get Ray's code to work as part of my Msc project (very useful!)
but am failing horribly.
wirth a few subtle modifications to get it to run on visual studio 2005 i got the HandRankSetup to work fine.

Getting Card IDs!
ID - 612976
Setting HandRanks!
ID - 612976
Number IDs = 612977
maxHR = 32487833
Training seconds = 61.54

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.6250
Total HighPrecision Clocks = 2225124
HighPrecision clocks per lookup = 0.016632


however, i cannot get TestHandRank to run properly.
i've converted:

FILE * fin = fopen("..\\HandRanks.dat", "rb");

to

FILE * fin;
fopen_s(&fin,"..\\HandRanks.dat", "rb");

but this just doesnt find the file (in the same directory)
so i change the ..\\ to .\\ and i get:


BAD!! = 133784560
High Card = 0
Pair = 0
Two Pair = 0
Three of a Kind = 0
Straight = 0
Flush = 0
Full House = 0
Four of a Kind = 0
Straight Flush = 0
Total Hands = 133784560

Validation seconds = 0.5000
Total HighPrecision Clocks = 1787357
HighPrecision clocks per lookup = 0.013360

which is just entirely confusing.
any ideas anyone?
Reply With Quote
  #2  
Old 08-08-2007, 06:55 PM
RayW RayW is offline
Junior Member
 
Join Date: Mar 2005
Posts: 24
Default Re: 7 Card Hand Evaluators

[ QUOTE ]
been trying to get Ray's code to work as part of my Msc project (very useful!)
but am failing horribly.
wirth a few subtle modifications to get it to run on visual studio 2005 i got the HandRankSetup to work fine.

Getting Card IDs!
ID - 612976
Setting HandRanks!
ID - 612976
Number IDs = 612977
maxHR = 32487833
Training seconds = 61.54

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.6250
Total HighPrecision Clocks = 2225124
HighPrecision clocks per lookup = 0.016632


however, i cannot get TestHandRank to run properly.
i've converted:

FILE * fin = fopen("..\\HandRanks.dat", "rb");

to

FILE * fin;
fopen_s(&fin,"..\\HandRanks.dat", "rb");

but this just doesnt find the file (in the same directory)
so i change the ..\\ to .\\ and i get:


BAD!! = 133784560
High Card = 0
Pair = 0
Two Pair = 0
Three of a Kind = 0
Straight = 0
Flush = 0
Full House = 0
Four of a Kind = 0
Straight Flush = 0
Total Hands = 133784560

Validation seconds = 0.5000
Total HighPrecision Clocks = 1787357
HighPrecision clocks per lookup = 0.013360

which is just entirely confusing.
any ideas anyone?

[/ 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...
Reply With Quote
  #3  
Old 08-09-2007, 11:51 AM
jukofyork jukofyork is offline
Senior Member
 
Join Date: Sep 2004
Location: Leeds, UK.
Posts: 2,551
Default Re: 7 Card Hand Evaluators

[ QUOTE ]
[ QUOTE ]
been trying to get Ray's code to work as part of my Msc project (very useful!)
but am failing horribly.
wirth a few subtle modifications to get it to run on visual studio 2005 i got the HandRankSetup to work fine.

Getting Card IDs!
ID - 612976
Setting HandRanks!
ID - 612976
Number IDs = 612977
maxHR = 32487833
Training seconds = 61.54

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.6250
Total HighPrecision Clocks = 2225124
HighPrecision clocks per lookup = 0.016632


however, i cannot get TestHandRank to run properly.
i've converted:

FILE * fin = fopen("..\\HandRanks.dat", "rb");

to

FILE * fin;
fopen_s(&fin,"..\\HandRanks.dat", "rb");

but this just doesnt find the file (in the same directory)
so i change the ..\\ to .\\ and i get:


BAD!! = 133784560
High Card = 0
Pair = 0
Two Pair = 0
Three of a Kind = 0
Straight = 0
Flush = 0
Full House = 0
Four of a Kind = 0
Straight Flush = 0
Total Hands = 133784560

Validation seconds = 0.5000
Total HighPrecision Clocks = 1787357
HighPrecision clocks per lookup = 0.013360

which is just entirely confusing.
any ideas anyone?

[/ 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 ]
Just on the off-chance that you are trying to compile this under Unix then you should also make sure that you use forward slashes instead (eg: "//") - most windoze compilers (and Java VM) still work with forward slashes, but backslahes tend to regularly cause porting problems.

Juk [img]/images/graemlins/smile.gif[/img]
Reply With Quote
  #4  
Old 08-18-2007, 12:01 AM
Janis N. Janis N. is offline
Senior Member
 
Join Date: Jul 2007
Posts: 527
Default Re: 7 Card Hand Evaluators

I tried to compile poker-eval on windows/cygwin as a .dll in order to use from JNI and failed.

If anybody has managed to do that, please drop me a PM.
Reply With Quote
  #5  
Old 08-18-2007, 06:54 AM
advis0r advis0r is offline
Member
 
Join Date: Apr 2007
Location: Southern Germany
Posts: 99
Default Re: 7 Card Hand Evaluators

[ QUOTE ]
I tried to compile poker-eval on windows/cygwin as a .dll in order to use from JNI and failed.

If anybody has managed to do that, please drop me a PM.

[/ QUOTE ]

when i tried that i failed too [img]/images/graemlins/smile.gif[/img]
since then i have been using a modified version of steve brecher's holdem showdown http://www.brecware.com/Software/software.html

if you find a way to create the dll plz drop me pm [img]/images/graemlins/smile.gif[/img]
Reply With Quote
  #6  
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
  #7  
Old 08-23-2007, 02:03 PM
Al P Al P is offline
Senior Member
 
Join Date: Jan 2005
Location: Weighed down in the Undertow
Posts: 796
Default Re: 7 Card Hand Evaluators

Hey are there any evaluators out there that stop on the flop (5 cards)?
Reply With Quote
  #8  
Old 08-23-2007, 03:15 PM
mykey1961 mykey1961 is offline
Senior Member
 
Join Date: Oct 2005
Posts: 249
Default Re: 7 Card Hand Evaluators

A second Table could give the Minimum, and Maximum possible Hand Values for each State.

Value = StateValue[State].Minimum;
Possible = StateValue[State].Maximum;

NewState = Table[State,NextCard];
Reply With Quote
  #9  
Old 08-23-2007, 04:29 PM
RayW RayW is offline
Junior Member
 
Join Date: Mar 2005
Posts: 24
Default Re: 7 Card Hand Evaluators

[ QUOTE ]
Hey are there any evaluators out there that stop on the flop (5 cards)?

[/ QUOTE ]

Well, you can use cactus key's code, pokersource, or the evaluator here I have the hand strength for 5 cards in the 0 (zero) entry. There are many more to choose from than just the ones listed. Depends what you want to do. Well, since we are on that subject, what do you want to do with it?

RayW...
Reply With Quote
  #10  
Old 08-25-2007, 07:07 PM
Al P Al P is offline
Senior Member
 
Join Date: Jan 2005
Location: Weighed down in the Undertow
Posts: 796
Default Re: 7 Card Hand Evaluators

Just crunch some raw numbers - you know like AA vs. 33 only seeing the flop or AK vs. 44 only seeing the flop. 33 is 7.5:1 against flopping a set but does an evaluator come out with those exact numbers or something different because of set over set, etc.
Reply With Quote
Reply

Thread Tools
Display Modes

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 11:18 AM.


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