Fix regex for posting both blinds

Partially fix output:

neslein: posts small blind [$ 0.05 USD]
dokiprogym: posts big blind [$ 0.10 USD]
EricBlade: posts both blinds [$ 0.15 USD]
Tilting2: posts big blind [$ 0.10 USD]

becomes:

neslein: posts small blind $0.05
dokiprogym: posts big blind $0.10
Tilting2: posts big blind $0.10
EricBlade: posts big blind $0.10

EricBlade should post .15
This commit is contained in:
Worros
2009-02-21 23:26:37 +09:00
parent d196b80a60
commit 76688ed1c2
2 changed files with 6 additions and 5 deletions
+4 -3
View File
@@ -191,7 +191,7 @@ Card ranks will be uppercased
# - this is a bet of 1 bb and is the new uncalled
#
# If a player posts a big & small blind
#
# - FIXME: We dont record this for later printing yet
print "DEBUG addBlind: %s posts %s, %s" % (player, blindtype, amount)
if player is not None:
@@ -203,10 +203,11 @@ Card ranks will be uppercased
self.pot.addMoney(player, Decimal(amount))
if blindtype == 'big blind':
self.lastBet['PREFLOP'] = Decimal(amount)
elif blindtype == 'small & big blinds':
elif blindtype == 'both':
# extra small blind is 'dead'
self.lastBet['PREFLOP'] = Decimal(self.bb)
self.posted += [player]
print "DEBUG: self.posted: %s" %(self.posted)
def addCall(self, street, player=None, amount=None):
@@ -389,7 +390,7 @@ Map the tuple self.gametype onto the pokerstars string describing it
#May be more than 1 bb posting
for a in self.posted[1:]:
print >>fh, _("%s: posts big blind $%s" %(self.posted[1], self.bb))
print >>fh, _("%s: posts big blind $%s" %(a, self.bb))
# TODO: What about big & small blinds?