Pokerstar Big and Small blind for limit games now derived
form lookup table. This also needs to be done for PokerStars, don't know for the other sites....
This commit is contained in:
parent
0294e4fdbb
commit
6272c057b9
|
@ -344,15 +344,14 @@ For sites (currently only Carbon Poker) which record "all in" as a special actio
|
||||||
if blindtype == 'both':
|
if blindtype == 'both':
|
||||||
# work with the real ammount. limit games are listed as $1, $2, where
|
# work with the real ammount. limit games are listed as $1, $2, where
|
||||||
# the SB 0.50 and the BB is $1, after the turn the minimum bet amount is $2....
|
# the SB 0.50 and the BB is $1, after the turn the minimum bet amount is $2....
|
||||||
amount = Decimal(amount)/3
|
amount = self.bb
|
||||||
self.bets['BLINDSANTES'][player].append(amount)
|
self.bets['BLINDSANTES'][player].append(Decimal(self.sb))
|
||||||
self.pot.addCommonMoney(player, amount)
|
self.pot.addCommonMoney(player, Decimal(self.sb))
|
||||||
amount += amount
|
|
||||||
|
|
||||||
if blindtype == 'secondsb':
|
if blindtype == 'secondsb':
|
||||||
amount = Decimal(0)
|
amount = Decimal(0)
|
||||||
self.bets['BLINDSANTES'][player].append(Decimal(self.sb))
|
self.bets['BLINDSANTES'][player].append(Decimal(self.sb))
|
||||||
self.pot.addCommonMoney(Decimal(self.sb))
|
self.pot.addCommonMoney(player, Decimal(self.sb))
|
||||||
|
|
||||||
self.bets['PREFLOP'][player].append(Decimal(amount))
|
self.bets['PREFLOP'][player].append(Decimal(amount))
|
||||||
self.pot.addMoney(player, Decimal(amount))
|
self.pot.addMoney(player, Decimal(amount))
|
||||||
|
@ -1450,7 +1449,7 @@ class Pot(object):
|
||||||
|
|
||||||
# Return any uncalled bet.
|
# Return any uncalled bet.
|
||||||
committed = sorted([ (v,k) for (k,v) in self.committed.items()])
|
committed = sorted([ (v,k) for (k,v) in self.committed.items()])
|
||||||
print "DEBUG: committed: %s" % committed
|
#print "DEBUG: committed: %s" % committed
|
||||||
#ERROR below. lastbet is correct in most cases, but wrong when
|
#ERROR below. lastbet is correct in most cases, but wrong when
|
||||||
# additional money is committed to the pot in cash games
|
# additional money is committed to the pot in cash games
|
||||||
# due to an additional sb being posted. (Speculate that
|
# due to an additional sb being posted. (Speculate that
|
||||||
|
|
|
@ -140,6 +140,14 @@ class PokerStars(HandHistoryConverter):
|
||||||
|
|
||||||
mg = m.groupdict()
|
mg = m.groupdict()
|
||||||
# translations from captured groups to fpdb info strings
|
# translations from captured groups to fpdb info strings
|
||||||
|
Lim_Blinds = { '0.04': ('0.01', '0.02'), '0.10': ('0.02', '0.05'), '0.20': ('0.05', '0.10'),
|
||||||
|
'0.50': ('0.10', '0.25'), '1.00': ('0.25', '0.50'), '2.00': ('0.50', '1.00'),
|
||||||
|
'4.00': ('1.00', '2.00'), '6.00': ('1.00', '3.00'), '10.00': ('2.00', '5.00'),
|
||||||
|
'20.00': ('5.00', '10.00'), '30.00': ('10.00', '15.00'), '60.00': ('15.00', '30.00'),
|
||||||
|
'100.00': ('25.00', '50.00'),'200.00': ('50.00', '100.00'),'400.00': ('100.00', '200.00'),
|
||||||
|
'1000.00': ('250.00', '500.00')}
|
||||||
|
|
||||||
|
|
||||||
limits = { 'No Limit':'nl', 'Pot Limit':'pl', 'Limit':'fl' }
|
limits = { 'No Limit':'nl', 'Pot Limit':'pl', 'Limit':'fl' }
|
||||||
games = { # base, category
|
games = { # base, category
|
||||||
"Hold'em" : ('hold','holdem'),
|
"Hold'em" : ('hold','holdem'),
|
||||||
|
@ -173,6 +181,10 @@ class PokerStars(HandHistoryConverter):
|
||||||
else:
|
else:
|
||||||
info['type'] = 'tour'
|
info['type'] = 'tour'
|
||||||
|
|
||||||
|
if info['limitType'] == 'fl' and info['bb'] != None:
|
||||||
|
info['sb'] = Lim_Blinds[mg['BB']][0]
|
||||||
|
info['bb'] = Lim_Blinds[mg['BB']][1]
|
||||||
|
|
||||||
# NB: SB, BB must be interpreted as blinds or bets depending on limit type.
|
# NB: SB, BB must be interpreted as blinds or bets depending on limit type.
|
||||||
return info
|
return info
|
||||||
|
|
||||||
|
@ -287,16 +299,14 @@ class PokerStars(HandHistoryConverter):
|
||||||
hand.addBringIn(m.group('PNAME'), m.group('BRINGIN'))
|
hand.addBringIn(m.group('PNAME'), m.group('BRINGIN'))
|
||||||
|
|
||||||
def readBlinds(self, hand):
|
def readBlinds(self, hand):
|
||||||
try:
|
liveBlind = True
|
||||||
count = 0
|
for a in self.re_PostSB.finditer(hand.handText):
|
||||||
for a in self.re_PostSB.finditer(hand.handText):
|
if liveBlind:
|
||||||
if count == 0:
|
hand.addBlind(a.group('PNAME'), 'small blind', a.group('SB'))
|
||||||
hand.addBlind(a.group('PNAME'), 'small blind', a.group('SB'))
|
liveBlind = False
|
||||||
count = 1
|
else:
|
||||||
else:
|
# Post dead blinds as ante
|
||||||
hand.addBlind(a.group('PNAME'), 'secondsb', a.group('SB'))
|
hand.addBlind(a.group('PNAME'), 'secondsb', a.group('SB'))
|
||||||
except: # no small blind
|
|
||||||
hand.addBlind(None, None, None)
|
|
||||||
for a in self.re_PostBB.finditer(hand.handText):
|
for a in self.re_PostBB.finditer(hand.handText):
|
||||||
hand.addBlind(a.group('PNAME'), 'big blind', a.group('BB'))
|
hand.addBlind(a.group('PNAME'), 'big blind', a.group('BB'))
|
||||||
for a in self.re_PostBoth.finditer(hand.handText):
|
for a in self.re_PostBoth.finditer(hand.handText):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user