DerivedStats: Fix raiseFirstInChance and raisedFirstIn for stud
The previous calculation didn't correctly deal with the 'complete' and 'bringin' actions, with bringin being markes as raisedFirstIn = True Reduced regression test errors, but triggered some in unverified file. --------------------- Total Errors: 22 --------------------- Likely offenders: ( 2) : regression-test-files/cash/Stars/Stud/7-StudHL-USD-0.04-0.08-200911.Cardtest.txt ( 2) : raiseFirstInChance ( 1) : street1CBChance ( 1) : street1CBDone
This commit is contained in:
parent
f244f8a37d
commit
ccb116ceda
|
@ -377,9 +377,9 @@ class DerivedStats():
|
||||||
if steal_attempt and act != 'folds':
|
if steal_attempt and act != 'folds':
|
||||||
break
|
break
|
||||||
|
|
||||||
if not steal_attempt and not raised: # if posn in steal_positions and not steal_attempt:
|
if not steal_attempt and not raised and not act in ('bringin'):
|
||||||
self.handsplayers[pname]['raiseFirstInChance'] = True
|
self.handsplayers[pname]['raiseFirstInChance'] = True
|
||||||
if act in ('bets', 'raises'):
|
if act in ('bets', 'raises', 'completes'):
|
||||||
self.handsplayers[pname]['raisedFirstIn'] = True
|
self.handsplayers[pname]['raisedFirstIn'] = True
|
||||||
raised = True
|
raised = True
|
||||||
if posn in steal_positions:
|
if posn in steal_positions:
|
||||||
|
@ -387,7 +387,7 @@ class DerivedStats():
|
||||||
if act == 'calls':
|
if act == 'calls':
|
||||||
break
|
break
|
||||||
|
|
||||||
if posn not in steal_positions and act != 'folds':
|
if posn not in steal_positions and act not in ('folds', 'bringin'):
|
||||||
break
|
break
|
||||||
|
|
||||||
def calc34BetStreet0(self, hand):
|
def calc34BetStreet0(self, hand):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user