![]() |
|
|
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
[ 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... |
|
#3
|
|||
|
|||
|
[ 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] |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
[ 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] |
|
#6
|
|||
|
|||
|
[ 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 |
|
#7
|
|||
|
|||
|
Hey are there any evaluators out there that stop on the flop (5 cards)?
|
|
#8
|
|||
|
|||
|
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]; |
|
#9
|
|||
|
|||
|
[ 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... |
|
#10
|
|||
|
|||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|