Discuss how to create custom stats, reports and HUD profiles and share your creations.
Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators
by js2002 » Wed Mar 12, 2014 11:17 am
puke
who build them? Is there no documentary?
(I have to combine serveral board filters and it would take hours to find everything in the logs.)
-
js2002
-
- Posts: 1501
- Joined: Fri Feb 15, 2008 5:44 am
- Location: Germany
-
by kraada » Wed Mar 12, 2014 11:18 am
Our development team did. My understanding is that the main trick is to compare board cards by using modulo as that gives you the rank.
-
kraada
- Moderator
-
- Posts: 54431
- Joined: Wed Mar 05, 2008 2:32 am
- Location: NY
by mkk6 » Sat Mar 22, 2014 8:33 pm
Code for Boards where a Straight is possible on the flop:
- Code: Select all
(((cash_hand_summary.card_1 %13 = 0 AND cash_hand_summary.card_2 %13 >=9 AND cash_hand_summary.card_3 %13>=9) OR
(cash_hand_summary.card_2 %13 = 0 AND cash_hand_summary.card_1 %13 >=9 AND cash_hand_summary.card_3 %13>=9) OR
(cash_hand_summary.card_3 %13 = 0 AND cash_hand_summary.card_1 %13 >=9 AND cash_hand_summary.card_2 %13>=9) AND
(not(cash_hand_summary.card_1 %13 = cash_hand_summary.card_2 %13) OR not(cash_hand_summary.card_1 %13 = cash_hand_summary.card_3 %13) OR
not(cash_hand_summary.card_2 %13 = cash_hand_summary.card_3 %13))) OR
(((cash_hand_summary.card_1 %13 > cash_hand_summary.card_2%13 AND cash_hand_summary.card_1 %13 > cash_hand_summary.card_3%13)
AND (cash_hand_summary.card_2 %13 > cash_hand_summary.card_3%13) AND ((cash_hand_summary.card_1 %13 - cash_hand_summary.card_3%13) <5)) OR
((cash_hand_summary.card_1 %13 > cash_hand_summary.card_2%13 AND cash_hand_summary.card_1 %13 > cash_hand_summary.card_3%13)
AND (cash_hand_summary.card_3 %13 > cash_hand_summary.card_2%13) AND ((cash_hand_summary.card_1 %13 - cash_hand_summary.card_2%13) <5)) OR
((cash_hand_summary.card_2 %13 > cash_hand_summary.card_1%13 AND cash_hand_summary.card_2 %13 > cash_hand_summary.card_3%13)
AND (cash_hand_summary.card_1 %13 > cash_hand_summary.card_3%13) AND ((cash_hand_summary.card_2 %13 - cash_hand_summary.card_3%13) <5)) OR
((cash_hand_summary.card_2 %13 > cash_hand_summary.card_1%13 AND cash_hand_summary.card_2 %13 > cash_hand_summary.card_3%13)
AND (cash_hand_summary.card_3 %13 > cash_hand_summary.card_1%13) AND ((cash_hand_summary.card_2 %13 - cash_hand_summary.card_1%13) <5)) OR
((cash_hand_summary.card_3 %13 > cash_hand_summary.card_1%13 AND cash_hand_summary.card_3 %13 > cash_hand_summary.card_2%13)
AND (cash_hand_summary.card_2 %13 > cash_hand_summary.card_1%13) AND ((cash_hand_summary.card_3 %13 - cash_hand_summary.card_1 %13) <5)) OR
((cash_hand_summary.card_3%13 > cash_hand_summary.card_1%13 AND cash_hand_summary.card_3%13 > cash_hand_summary.card_2%13)
AND (cash_hand_summary.card_1%13 > cash_hand_summary.card_2%13) AND ((cash_hand_summary.card_3%13 - cash_hand_summary.card_2%13) <5))))
Basically checking for an Ace on the flop, and so if the other cards are also Broadways->Str8 possible
The second Part is checking if the gap between the lowest and highest card is <5->Str8 possible.
Maybe not the fastest way but at least it should give you a start.
Have fun
-
mkk6
-
- Posts: 24
- Joined: Thu May 15, 2008 4:07 pm
by js2002 » Sun Mar 23, 2014 6:26 am
Well I would check:
- max of 3 card difference to min of 3 cards, but then I saw that cardrank 13 (Ace) can also make str8s. So we have to add a check for that.
...since I want "str8draw" possible checks: I need to compare all cards....
-
js2002
-
- Posts: 1501
- Joined: Fri Feb 15, 2008 5:44 am
- Location: Germany
-
by kraada » Sun Mar 23, 2014 8:53 am
You guys need to remember that aces can be both high (in broadway straights) and low (in wheel straights). I don't think that was accounted for in the above code
-
kraada
- Moderator
-
- Posts: 54431
- Joined: Wed Mar 05, 2008 2:32 am
- Location: NY
by mkk6 » Sun Mar 23, 2014 9:54 am
kraada wrote:You guys need to remember that aces can be both high (in broadway straights) and low (in wheel straights). I don't think that was accounted for in the above code
its checked in my code.
I am checking for an all Broadway flop incl. Ace. ->Broadway Str8s covered. The Gap<5 works for the rest.
-
mkk6
-
- Posts: 24
- Joined: Thu May 15, 2008 4:07 pm
by js2002 » Sun Mar 23, 2014 10:16 am
you got a stat ready?
-
js2002
-
- Posts: 1501
- Joined: Fri Feb 15, 2008 5:44 am
- Location: Germany
-
by mkk6 » Sun Mar 23, 2014 11:56 am
Just add the Code to your preferred Stat:
CBet Flop Str8:
(cnt_f_cbet_str8/cnt_f_cbet_str8_opp)*100
cnt_f_cbet_str8
- Code: Select all
sum(if[cash_hand_player_statistics.flg_f_cbet AND
(((cash_hand_summary.card_1 %13 = 0 AND cash_hand_summary.card_2 %13 >=9 AND cash_hand_summary.card_3 %13>=9) OR
(cash_hand_summary.card_2 %13 = 0 AND cash_hand_summary.card_1 %13 >=9 AND cash_hand_summary.card_3 %13>=9) OR
(cash_hand_summary.card_3 %13 = 0 AND cash_hand_summary.card_1 %13 >=9 AND cash_hand_summary.card_2 %13>=9) AND
(not(cash_hand_summary.card_1 %13 = cash_hand_summary.card_2 %13) OR not(cash_hand_summary.card_1 %13 = cash_hand_summary.card_3 %13) OR
not(cash_hand_summary.card_2 %13 = cash_hand_summary.card_3 %13))) OR
(((cash_hand_summary.card_1 %13 > cash_hand_summary.card_2%13 AND cash_hand_summary.card_1 %13 > cash_hand_summary.card_3%13)
AND (cash_hand_summary.card_2 %13 > cash_hand_summary.card_3%13) AND ((cash_hand_summary.card_1 %13 - cash_hand_summary.card_3%13) <5)) OR
((cash_hand_summary.card_1 %13 > cash_hand_summary.card_2%13 AND cash_hand_summary.card_1 %13 > cash_hand_summary.card_3%13)
AND (cash_hand_summary.card_3 %13 > cash_hand_summary.card_2%13) AND ((cash_hand_summary.card_1 %13 - cash_hand_summary.card_2%13) <5)) OR
((cash_hand_summary.card_2 %13 > cash_hand_summary.card_1%13 AND cash_hand_summary.card_2 %13 > cash_hand_summary.card_3%13)
AND (cash_hand_summary.card_1 %13 > cash_hand_summary.card_3%13) AND ((cash_hand_summary.card_2 %13 - cash_hand_summary.card_3%13) <5)) OR
((cash_hand_summary.card_2 %13 > cash_hand_summary.card_1%13 AND cash_hand_summary.card_2 %13 > cash_hand_summary.card_3%13)
AND (cash_hand_summary.card_3 %13 > cash_hand_summary.card_1%13) AND ((cash_hand_summary.card_2 %13 - cash_hand_summary.card_1%13) <5)) OR
((cash_hand_summary.card_3 %13 > cash_hand_summary.card_1%13 AND cash_hand_summary.card_3 %13 > cash_hand_summary.card_2%13)
AND (cash_hand_summary.card_2 %13 > cash_hand_summary.card_1%13) AND ((cash_hand_summary.card_3 %13 - cash_hand_summary.card_1 %13) <5)) OR
((cash_hand_summary.card_3%13 > cash_hand_summary.card_1%13 AND cash_hand_summary.card_3%13 > cash_hand_summary.card_2%13)
AND (cash_hand_summary.card_1%13 > cash_hand_summary.card_2%13) AND ((cash_hand_summary.card_3%13 - cash_hand_summary.card_2%13) <5)))), 1, 0])
cnt_f_cbet_str8_opp
- Code: Select all
sum(if[cash_hand_player_statistics.flg_f_cbet_opp AND
(((cash_hand_summary.card_1 %13 = 0 AND cash_hand_summary.card_2 %13 >=9 AND cash_hand_summary.card_3 %13>=9) OR
(cash_hand_summary.card_2 %13 = 0 AND cash_hand_summary.card_1 %13 >=9 AND cash_hand_summary.card_3 %13>=9) OR
(cash_hand_summary.card_3 %13 = 0 AND cash_hand_summary.card_1 %13 >=9 AND cash_hand_summary.card_2 %13>=9) AND
(not(cash_hand_summary.card_1 %13 = cash_hand_summary.card_2 %13) OR not(cash_hand_summary.card_1 %13 = cash_hand_summary.card_3 %13) OR
not(cash_hand_summary.card_2 %13 = cash_hand_summary.card_3 %13))) OR
(((cash_hand_summary.card_1 %13 > cash_hand_summary.card_2%13 AND cash_hand_summary.card_1 %13 > cash_hand_summary.card_3%13)
AND (cash_hand_summary.card_2 %13 > cash_hand_summary.card_3%13) AND ((cash_hand_summary.card_1 %13 - cash_hand_summary.card_3%13) <5)) OR
((cash_hand_summary.card_1 %13 > cash_hand_summary.card_2%13 AND cash_hand_summary.card_1 %13 > cash_hand_summary.card_3%13)
AND (cash_hand_summary.card_3 %13 > cash_hand_summary.card_2%13) AND ((cash_hand_summary.card_1 %13 - cash_hand_summary.card_2%13) <5)) OR
((cash_hand_summary.card_2 %13 > cash_hand_summary.card_1%13 AND cash_hand_summary.card_2 %13 > cash_hand_summary.card_3%13)
AND (cash_hand_summary.card_1 %13 > cash_hand_summary.card_3%13) AND ((cash_hand_summary.card_2 %13 - cash_hand_summary.card_3%13) <5)) OR
((cash_hand_summary.card_2 %13 > cash_hand_summary.card_1%13 AND cash_hand_summary.card_2 %13 > cash_hand_summary.card_3%13)
AND (cash_hand_summary.card_3 %13 > cash_hand_summary.card_1%13) AND ((cash_hand_summary.card_2 %13 - cash_hand_summary.card_1%13) <5)) OR
((cash_hand_summary.card_3 %13 > cash_hand_summary.card_1%13 AND cash_hand_summary.card_3 %13 > cash_hand_summary.card_2%13)
AND (cash_hand_summary.card_2 %13 > cash_hand_summary.card_1%13) AND ((cash_hand_summary.card_3 %13 - cash_hand_summary.card_1 %13) <5)) OR
((cash_hand_summary.card_3%13 > cash_hand_summary.card_1%13 AND cash_hand_summary.card_3%13 > cash_hand_summary.card_2%13)
AND (cash_hand_summary.card_1%13 > cash_hand_summary.card_2%13) AND ((cash_hand_summary.card_3%13 - cash_hand_summary.card_2%13) <5)))), 1, 0])
-
mkk6
-
- Posts: 24
- Joined: Thu May 15, 2008 4:07 pm
by js2002 » Sun Mar 23, 2014 12:02 pm
The stat def is "made str8" right?
why dont u use this: tourney_hand_player_combinations.flg_f_straight (change it for cash)
-
js2002
-
- Posts: 1501
- Joined: Fri Feb 15, 2008 5:44 am
- Location: Germany
-
by mkk6 » Sun Mar 23, 2014 1:19 pm
I am only checking the Flopcards, if a straight would be possible. Dont care if the Player has a straight or what are the holecards.
Think the flg_f_straight is checking, if the Player has the straight. (?)
-
mkk6
-
- Posts: 24
- Joined: Thu May 15, 2008 4:07 pm
Return to Custom Stats, Reports and HUD Profiles
Users browsing this forum: No registered users and 49 guests