blackjack: fix the previous fix in basic strategy enumeration

This commit is contained in:
moneromooo 2015-02-18 22:04:51 +00:00
parent 6b7b2df420
commit 439b9e0f0e

View file

@ -471,9 +471,9 @@ def GetBasicStrategyMove(link):
return "hit" return "hit"
if player_has_soft_hand: if player_has_soft_hand:
if player_score in [8, 9]: if player_score in [18, 19]:
return "stand" return "stand"
if player_score == 7: if player_score == 17:
if dealer_upcard in ['2', '7', '8']: if dealer_upcard in ['2', '7', '8']:
return "stand" return "stand"
if dealer_upcard in ['3', '4', '5', '6']: if dealer_upcard in ['3', '4', '5', '6']:
@ -482,21 +482,21 @@ def GetBasicStrategyMove(link):
else: else:
return "stand" return "stand"
return "hit" return "hit"
if player_score == 6: if player_score == 16:
if dealer_upcard in ['3', '4', '5', '6']: if dealer_upcard in ['3', '4', '5', '6']:
if player_can_double: if player_can_double:
return "double" return "double"
else: else:
return "hit" return "hit"
return "hit" return "hit"
if player_score in [4, 5]: if player_score in [14, 15]:
if dealer_upcard in ['4', '5', '6']: if dealer_upcard in ['4', '5', '6']:
if player_can_double: if player_can_double:
return "double" return "double"
else: else:
return "hit" return "hit"
return "hit" return "hit"
if player_score in [2, 3]: if player_score in [12, 13]:
if dealer_upcard in ['5', '6']: if dealer_upcard in ['5', '6']:
if player_can_double: if player_can_double:
return "double" return "double"