If the small blind is dead and it's folded round to big blind, no one collects a pot. Warning if we do not see 'collected' line.

This commit is contained in:
Matt Turnbull 2008-12-10 00:05:12 +00:00
parent c9cb2ea7dd
commit 215d5a74b2

View File

@ -209,10 +209,10 @@ class Everleaf(HandHistoryConverter):
def readCollectPot(self,hand): def readCollectPot(self,hand):
m = self.rexx.collect_pot_re.search(hand.string) m = self.rexx.collect_pot_re.search(hand.string)
#print m.groups() if m is not None:
#print m.group('PNAME')
#for collection in m:
hand.addCollectPot(player=m.group('PNAME'),pot=m.group('POT')) hand.addCollectPot(player=m.group('PNAME'),pot=m.group('POT'))
else:
print "WARNING: Unusual, no one collected; can happen if it's folded to big blind with a dead small blind."
def getRake(self, hand): def getRake(self, hand):
hand.rake = hand.totalpot * Decimal('0.05') # probably not quite right hand.rake = hand.totalpot * Decimal('0.05') # probably not quite right