kraada wrote:You can check for being absolutely in position more easily though and you can test to see that there are 3 players at the flop with cash_hand_summary.cnt_players_f.
thank you.
but this is not the important part here i guess. the important part is the third players position. he has to be in the sandwich between hero and preflop aggressor (while hero is ip and preflop aggressor oop)
my thoughts are
1) the third player is 2nd to act on the flop. so, his position is substring(cash_hand_summary.str_actors_f from 2 for 1)::int
2) third player has position on the preflop aggressor. so substring(cash_hand_summary.str_actors_f from 2 for 1)::int < substring(cash_hand_summary.str_aggressors_p from '.$')::int
3) third player has no position on hero. so, substring(cash_hand_summary.str_actors_f from 2 for 1)::int > cash_hand_player_statistics.position
so, if the following worked, i would not have a problem with preflop limpers or someone being in the blinds, right? it would include any cases where preflop aggressor is first to act, third player is second to act and hero is last to act on a flop with 3 players?
substring(cash_hand_summary.str_actors_f from 2 for 1)::int < substring(cash_hand_summary.str_aggressors_p from '.$')::int and
substring(cash_hand_summary.str_actors_f from 2 for 1)::int > cash_hand_player_statistics.position