Add support for post of dead small blind (PartyPoker)
This commit is contained in:
parent
e41c63f6ee
commit
1edf860760
|
@ -360,8 +360,14 @@ class PartyPoker(HandHistoryConverter):
|
||||||
if hand.gametype['type'] == 'ring':
|
if hand.gametype['type'] == 'ring':
|
||||||
try:
|
try:
|
||||||
assert noSmallBlind==False
|
assert noSmallBlind==False
|
||||||
m = self.re_PostSB.search(hand.handText)
|
liveBlind = True
|
||||||
|
for m in self.re_PostSB.finditer(hand.handText):
|
||||||
|
if liveBlind:
|
||||||
hand.addBlind(m.group('PNAME'), 'small blind', m.group('SB'))
|
hand.addBlind(m.group('PNAME'), 'small blind', m.group('SB'))
|
||||||
|
liveBlind = False
|
||||||
|
else:
|
||||||
|
# Post dead blinds as ante
|
||||||
|
hand.addBlind(m.group('PNAME'), 'secondsb', m.group('SB'))
|
||||||
except: # no small blind
|
except: # no small blind
|
||||||
hand.addBlind(None, None, None)
|
hand.addBlind(None, None, None)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user