Fix the split issue

pull/205/head
Chuck 2023-09-22 21:04:45 -07:00
parent 8a1243dd35
commit 2ad6d58431
1 changed files with 1 additions and 1 deletions

View File

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