Merge branch 'stats' of git://git.assembla.com/fpdboz into newstats

This commit is contained in:
Mika Bostrom 2010-01-16 13:35:53 +02:00
commit 1f43d8db48

View File

@ -350,8 +350,9 @@ class DerivedStats():
CG: CheckCall would be a much better name for this. CG: CheckCall would be a much better name for this.
""" """
for i, street in enumerate(hand.actionStreets[2:], start=1): #for i, street in enumerate(hand.actionStreets[2:], start=1):
actions = hand.actions[hand.actionStreets[i]] for i, street in enumerate(hand.actionStreets[2:]):
actions = hand.actions[hand.actionStreets[i+1]]
checkers = set() checkers = set()
initial_raiser = None initial_raiser = None
for action in actions: for action in actions:
@ -361,8 +362,8 @@ class DerivedStats():
elif act == 'checks' and initial_raiser is None: elif act == 'checks' and initial_raiser is None:
checkers.add(pname) checkers.add(pname)
elif initial_raiser is not None and pname in checkers: elif initial_raiser is not None and pname in checkers:
self.handsplayers[pname]['street%dCheckCallRaiseChance' % i] = True self.handsplayers[pname]['street%dCheckCallRaiseChance' % (i+1)] = True
self.handsplayers[pname]['street%dCheckCallRaiseDone' % i] = act!='folds' self.handsplayers[pname]['street%dCheckCallRaiseDone' % (i+1)] = act!='folds'
def seen(self, hand, i): def seen(self, hand, i):
pas = set() pas = set()