by kraada » Mon Jan 31, 2011 10:16 am
This can be simplified slightly. A simpler version:
(holdem_hand_summary.cnt_players > 2
AND holdem_hand_player_statistics.flg_p_3bet_def_opp
AND holdem_hand_player_statistics.flg_p_first_raise
AND NOT (holdem_hand_player_statistics.flg_p_4bet OR holdem_hand_player_statistics.flg_p_4bet_def_opp)
AND holdem_hand_player_detail.val_p_raise_aggressor_pos < holdem_hand_player_statistics.position)
OR
(holdem_hand_summary.cnt_players = 2
AND holdem_hand_player_statistics.flg_blind_s
AND holdem_hand_player_statistics.flg_p_3bet_def_opp
AND NOT(holdem_hand_player_statistics.flg_p_4bet))
In the first half we check for more than two players, a hand where we defend against a 3-bet having made a raise, make sure we didn't 4-bet or face a 4-bet (this eliminates 4- then 5-bet spots that yours actually includes and I don't think you want), and check that we would have absolute position postflop.
The heads up section is quite a bit easier - with two players, the small blind is always the one with position. So we check for the small blind, any time we face a 3-bet (because heads up, the only way we can face a 3-bet is if we open raise!), and make sure we didn't 4-bet.