Fix the split issue
parent
8a1243dd35
commit
2ad6d58431
|
@ -274,7 +274,7 @@ def can_double_down(state):
|
|||
def can_split(state):
|
||||
player = state['player']
|
||||
player_never_hit = len(player) == 2
|
||||
hand_can_split = player[0][0] == player[1][0]
|
||||
hand_can_split = get_value_of_card[0] == get_value_of_card[1]
|
||||
player_has_split = state['has_player_split']
|
||||
return hand_can_split and player_never_hit and not player_has_split
|
||||
|
||||
|
|
Loading…
Reference in New Issue