PQL solution to poker question (help)
Posted by TomasTheWhale
Posted by TomasTheWhale posted in Gen. Poker
PQL solution to poker question (help)
Hi All,
I was looking for someone to check my work. I wanted to find the EV of a Ultimate Texas Holdem trips bet (described below).
I did the work in PQL (code posted below).
I came up with a house edge of 1.8%. But - what do you get?
The gamble: It is a simple bet:
You play against a blind hand. If you make trips or better you win at the odds posted below. But you must beat the blind hand to collect. If you tie the blind hand, it is a push.
Royal: 50-1
Str8 Flush: 40-1
Quads: 30-1
Boat: 10-1
Flush: 8-1
Str8: 6-1
Trips: 3-1
You do collect if you have AK on a board of 22289, when the blind hand is AQ. You collect on the trips bet.
My PQL code:
select avg(
case
when hiRating(v,river)>hiRating(h,river) and
( inrange(v,'axkx') and boardinrange('qxjxtx') ) or
( inrange(v,'axqx') and boardinrange('kxjxtx') ) or
( inrange(v,'axjx') and boardinrange('qxkxtx') ) or
( inrange(v,'axtx') and boardinrange('qxjxkx') ) or
( inrange(v,'kxqx') and boardinrange('axjxtx') ) or
( inrange(v,'kxjx') and boardinrange('qxaxtx') ) or
( inrange(v,'kxtx') and boardinrange('qxjxax') ) or
( inrange(v,'qxjx') and boardinrange('axkxtx') ) or
( inrange(v,'qxtx') and boardinrange('axjxkx') ) or
( inrange(v,'jxtx') and boardinrange('qxaxkx') ) or
( inrange(v,'ax') and boardinrange('kxqxjxtx') ) or
( inrange(v,'kx') and boardinrange('axqxjxtx') ) or
( inrange(v,'qx') and boardinrange('kxaxjxtx') ) or
( inrange(v,'jx') and boardinrange('kxqxaxtx') ) or
( inrange(v,'tx') and boardinrange('kxqxjxax') )
THEN 50
when hiRating(v,river)>hiRating(h,river) and exactHandType(v,river,straightflush) THEN 40
when hiRating(v,river)>hiRating(h,river) and exactHandType(v,river,quads) THEN 30
when hiRating(v,river)>hiRating(h,river) and exactHandType(v,river,fullhouse) THEN 10
when hiRating(v,river)>hiRating(h,river) and exactHandType(v,river,flush) THEN 8
when hiRating(v,river)>hiRating(h,river) and exactHandType(v,river,straight) THEN 6
when hiRating(v,river)>hiRating(h,river) and exactHandType(v,river,trips) THEN 3
when hiRating(v,river)=hiRating(h,river) THEN 0
ELSE -1
end
)from game="holdem",h='',v=''
Loading 0 Comments...
Be the first to add a comment
You must upgrade your account to leave a comment.
This thread has been locked. No further comments can be added.