Add comment regarding accounting error

This commit is contained in:
Worros 2010-02-16 00:42:13 +08:00
parent fcd0ba3dd1
commit 44d994303c

View File

@ -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]