I think I've mentioned the error in game_std.h but the bug in
eval_low8.c makes me think nobody has used this lib to do any high/low
split investigation.
Brian -- I believe at one point you were working on a o/8 evaluator.
I know have an o8cmpn.c that does it by brute force. If you are not
going to have a reasonable evaulator done in the near future I'd like
to post this source.
Talking about that... Anybody have a source of validated O/8 test
cases and/or want to review my source for heinous bugs before I post
it?
mph
p.s. Ick. I just noticed my diffs are "backwards". Sorry.
*** include/game_std.h Fri Nov 26 15:50:58 1999
--- ../poker-eval.orig/include/game_std.h Mon Nov 15 18:45:17 1999
***************
*** 14,20 ****
#define Hand_EVAL_X7 StdDeck_StdRules_EVAL_X7
#define Hand_EVAL_LOW StdDeck_Lowball_EVAL
! #define Hand_EVAL_LOW8 StdDeck_Lowball8_EVAL
#undef DECK_STANDARD
#undef RULES_STANDARD
--- 14,20 ----
#define Hand_EVAL_X7 StdDeck_StdRules_EVAL_X7
#define Hand_EVAL_LOW StdDeck_Lowball_EVAL
! #define Hand_EVAL_LOW8 StdDeck_Low8_EVAL
#undef DECK_STANDARD
#undef RULES_STANDARD
*** include/inlines/eval_low8.c Sun Mar 19 16:02:29 2000
--- ../poker-eval.orig/include/inlines/eval_low8.c Fri Oct 29 16:41:19 1999
***************
*** 4,10 ****
ranks = (StdDeck_CardMask_HEARTS(cards) |
StdDeck_CardMask_DIAMONDS(cards) |
! StdDeck_CardMask_CLUBS(cards) |
StdDeck_CardMask_SPADES(cards));
ranks = Lowball_ROTATE_RANKS(ranks);
retval = bottomFiveCardsTable[ranks];
--- 4,10 ----
ranks = (StdDeck_CardMask_HEARTS(cards) |
StdDeck_CardMask_DIAMONDS(cards) |
! StdDeck_CardMask_HEARTS(cards) |
StdDeck_CardMask_SPADES(cards));
ranks = Lowball_ROTATE_RANKS(ranks);
retval = bottomFiveCardsTable[ranks];