by kraada » Tue Feb 15, 2011 6:18 pm
These are quite complex, and stats like these are known to slow the HUD down - depending on your system it may not be able to handle this stat.
That said, unpaired flop and paired turn is:
holdem_hand_summary.card_1 % 13 != holdem_hand_summary.card_2 % 13 and holdem_hand_summary.card_2 % 13 != holdem_hand_summary.card_3 % 13 and (holdem_hand_summary.card_4 % 13 = holdem_hand_summary.card_1 % 13 OR holdem_hand_summary.card_4 % 13 = holdem_hand_summary.card_2 % 13 OR holdem_hand_summary.card_4 % 13 = holdem_hand_summary.card_3 % 13)
Possible flush completes on the turn is:
((holdem_hand_summary.card_1 <= 13 and holdem_hand_summary.card_2 <= 13 and holdem_hand_summary.card_3 >13 and holdem_hand_summary.card_4 <= 13) or (holdem_hand_summary.card_1 <= 13 and holdem_hand_summary.card_2 > 13 and holdem_hand_summary.card_3 <= 13 and holdem_hand_summary.card_4 <= 13) or (holdem_hand_summary.card_1 > 13 and holdem_hand_summary.card_2 <= 13 and holdem_hand_summary.card_3 <= 13 and holdem_hand_summary.card_4 <= 13) or
((holdem_hand_summary.card_1 <= 26 and holdem_hand_summary.card_1 >= 14) and (holdem_hand_summary.card_2 <= 26 and holdem_hand_summary.card_2 >= 14) and (holdem_hand_summary.card_3 > 26 or holdem_hand_summary.card_3 < 14) and (holdem_hand_summary.card_4 <= 26 and holdem_hand_summary.card_4 >= 14)) or ((holdem_hand_summary.card_1 <= 26 and holdem_hand_summary.card_1 >= 14) and (holdem_hand_summary.card_2 > 26 or holdem_hand_summary.card_2 < 14) and (holdem_hand_summary.card_3 <= 26 and holdem_hand_summary.card_3 >= 14) and (holdem_hand_summary.card_4 <= 26 and holdem_hand_summary.card_4 >= 14)) or ((holdem_hand_summary.card_1 > 26 or holdem_hand_summary.card_1 < 14) and (holdem_hand_summary.card_2 <= 26 and holdem_hand_summary.card_2 >= 14) and (holdem_hand_summary.card_3 <= 26 and holdem_hand_summary.card_3 >= 14) and (holdem_hand_summary.card_4 <= 26 and holdem_hand_summary.card_4 >= 14)) or
((holdem_hand_summary.card_1 <= 39 and holdem_hand_summary.card_1 >= 27) and (holdem_hand_summary.card_2 <= 39 and holdem_hand_summary.card_2 >= 27) and (holdem_hand_summary.card_3 > 39 or holdem_hand_summary.card_3 < 27) and (holdem_hand_summary.card_4 <= 39 and holdem_hand_summary.card_4 >= 27)) or ((holdem_hand_summary.card_1 <= 39 and holdem_hand_summary.card_1 >= 27) and (holdem_hand_summary.card_2 > 39 or holdem_hand_summary.card_2 < 27) and (holdem_hand_summary.card_3 <= 39 and holdem_hand_summary.card_3 >= 27) and (holdem_hand_summary.card_4 <= 39 and holdem_hand_summary.card_4 >= 27)) or ((holdem_hand_summary.card_1 > 39 or holdem_hand_summary.card_1 < 27) and (holdem_hand_summary.card_2 <= 39 and holdem_hand_summary.card_2 >= 27) and (holdem_hand_summary.card_3 <= 39 and holdem_hand_summary.card_3 >= 27) and (holdem_hand_summary.card_4 <= 39 and holdem_hand_summary.card_4 >= 27)) or
(holdem_hand_summary.card_1 >= 40 and holdem_hand_summary.card_2 >= 40 and holdem_hand_summary.card_3 < 40 and holdem_hand_summary.card_4 >= 40) or (holdem_hand_summary.card_1 >= 40 and holdem_hand_summary.card_2 < 40 and holdem_hand_summary.card_3 >= 40 and holdem_hand_summary.card_4 >= 40) or (holdem_hand_summary.card_1 < 40 and holdem_hand_summary.card_2 >= 40 and holdem_hand_summary.card_3 >= 40 and holdem_hand_summary.card_4 >= 40))