Merge branch 'master' of git://git.assembla.com/fpdboz
This commit is contained in:
commit
641617955b
|
@ -344,6 +344,11 @@ For sites (currently only Carbon Poker) which record "all in" as a special actio
|
||||||
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(Decimal(self.sb))
|
||||||
|
|
||||||
|
if blindtype == 'secondsb':
|
||||||
|
amount = Decimal(0)
|
||||||
|
self.bets['BLINDSANTES'][player].append(Decimal(self.sb))
|
||||||
|
self.pot.addCommonMoney(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))
|
||||||
self.lastBet['PREFLOP'] = Decimal(amount)
|
self.lastBet['PREFLOP'] = Decimal(amount)
|
||||||
|
@ -1441,6 +1446,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
|
||||||
#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
|
||||||
|
|
|
@ -294,7 +294,7 @@ class PokerStars(HandHistoryConverter):
|
||||||
hand.addBlind(a.group('PNAME'), 'small blind', a.group('SB'))
|
hand.addBlind(a.group('PNAME'), 'small blind', a.group('SB'))
|
||||||
count = 1
|
count = 1
|
||||||
else:
|
else:
|
||||||
hand.addAnte(a.group('PNAME'), a.group('SB'))
|
hand.addBlind(a.group('PNAME'), 'secondsb', a.group('SB'))
|
||||||
except: # no small blind
|
except: # no small blind
|
||||||
hand.addBlind(None, None, None)
|
hand.addBlind(None, None, None)
|
||||||
for a in self.re_PostBB.finditer(hand.handText):
|
for a in self.re_PostBB.finditer(hand.handText):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user