game.py
def handle_compare_scores(self):
        """
        Compares the player and AI hand
        """
        if self.ai_hand.is_playing:
            if self.ai_hand.is_blackjack():
                self.handle_player_lost('You lost! AI has 21! New Deal?')
            elif self.ai_hand.is_bust():
                self.handle_player_win('You won! AI busted! New Deal?')
            elif max(0, min(21, self.player_hand.get_value())) > max(0, min(21, self.ai_hand.get_value())):
                self.handle_player_win('You won! New Deal?')
            else:
                self.handle_player_lost('You lost! New Deal?')

        Compares the player and AI hand
        
Compares the player and AI hand
Compares the player and AI hand
def handle_compare_scores(self):
        if self.ai_hand.is_playing:
            if self.ai_hand.is_blackjack():
                self.handle_player_lost('You lost! AI has 21! New Deal?')
            elif self.ai_hand.is_bust():
                self.handle_player_win('You won! AI busted! New Deal?')
            elif max(0, min(21, self.player_hand.get_value())) > max(0, min(21, self.ai_hand.get_value())):
                self.handle_player_win('You won! New Deal?')
            else:
                self.handle_player_lost('You lost! New Deal?')
def handle_compare_scores ( self ) : if self . ai_hand . is_playing : if self . ai_hand . is_blackjack ( ) : self . handle_player_lost ( 'You lost! AI has 21! New Deal?' ) elif self . ai_hand . is_bust ( ) : self . handle_player_win ( 'You won! AI busted! New Deal?' ) elif max ( 0 , min ( 21 , self . player_hand . get_value ( ) ) ) > max ( 0 , min ( 21 , self . ai_hand . get_value ( ) ) ) : self . handle_player_win ( 'You won! New Deal?' ) else : self . handle_player_lost ( 'You lost! New Deal?' )
Compares the player and AI hand
Compares the player and AI hand
"""
        Compares the player and AI hand
        """
self