From 44d994303cf0ceb67238553b2f287856a734d770 Mon Sep 17 00:00:00 2001 From: Worros Date: Tue, 16 Feb 2010 00:42:13 +0800 Subject: [PATCH] Add comment regarding accounting error --- pyfpdb/Hand.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyfpdb/Hand.py b/pyfpdb/Hand.py index 9bec209b..73dd7600 100644 --- a/pyfpdb/Hand.py +++ b/pyfpdb/Hand.py @@ -1441,6 +1441,10 @@ class Pot(object): # Return any uncalled bet. committed = sorted([ (v,k) for (k,v) in self.committed.items()]) + #ERROR below. lastbet is correct in most cases, but wrong when + # additional money is committed to the pot in cash games + # due to an additional sb being posted. (Speculate that + # posting sb+bb is also potentially wrong) lastbet = committed[-1][0] - committed[-2][0] if lastbet > 0: # uncalled returnto = committed[-1][1]