From d637c2a89c92bf0ba0c2bf252533add227f6e453 Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Sun, 14 Feb 2010 23:26:47 +0000 Subject: [PATCH] improve steal calc --- pyfpdb/DerivedStats.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyfpdb/DerivedStats.py b/pyfpdb/DerivedStats.py index 23f1f99c..166034a5 100644 --- a/pyfpdb/DerivedStats.py +++ b/pyfpdb/DerivedStats.py @@ -212,6 +212,7 @@ class DerivedStats(): map = positions[-seats:] # Copy required positions from array ending in -2 for i, player in enumerate(players): + #print "player %s in posn %s" % (player, str(map[i])) self.handsplayers[player]['position'] = map[i] def assembleHudCache(self, hand): @@ -308,6 +309,8 @@ class DerivedStats(): if act in ('bets', 'raises'): self.handsplayers[pname]['stealAttempted'] = True steal_attempt = True + if act == 'calls': + break if posn not in steal_positions and act != 'folds': break