![]() |
|
#11
|
|||
|
|||
|
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? |
|
|