Fix issue with split accidentally allowed split for flush instead of

pair??? Idk why this was originally made like this
pull/205/head
Chuck 2023-09-22 21:23:10 -07:00
parent 2ad6d58431
commit fb15e90347
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 = get_value_of_card[0] == get_value_of_card[1]
hand_can_split = get_value_of_card(player[0]) == get_value_of_card(player[1])
player_has_split = state['has_player_split']
return hand_can_split and player_never_hit and not player_has_split