Paired Turn and Flush Completing Turn

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

Paired Turn and Flush Completing Turn

Postby shahrad » Tue Feb 15, 2011 4:06 am

I would really appreciate it if you guys could right down the full formula :heart: . I couldn't do it on my own :oops:
What I need is:
Flop is unpaired and not monotone and the turn pairs the board.
Flop is unpaired and two tone and turn makes a flush possible.
shahrad
 
Posts: 118
Joined: Fri Oct 08, 2010 1:51 pm

Re: Paired Turn and Flush Completing Turn

Postby WhiteRider » Tue Feb 15, 2011 4:42 am

What are you trying to do, exactly? Is this a pair of stats, or are you trying to filter for these hands, etc?
Cash or tournaments, holdem or omaha?
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Paired Turn and Flush Completing Turn

Postby shahrad » Tue Feb 15, 2011 5:16 pm

I need it for custom stats, for example I want to know how many times someone cbets turn when a flush is possible Flop comes 6d9d3s and turn is a Kd, how many times does he lead the turn when a flush is possible or how many times does he cbet the turn in this situation. Something like Kraadas custom stat on paired and monotone boards.
shahrad
 
Posts: 118
Joined: Fri Oct 08, 2010 1:51 pm

Re: Paired Turn and Flush Completing Turn

Postby 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))
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests