def _get_legal_actions(self):
        ''' Get all leagal actions

        Returns:
            encoded_action_list (list): return encoded legal action list (from str to int)
        '''
        encoded_action_list = []
        for i in range(len(self.actions)):
            encoded_action_list.append(i)
        return encoded_action_list
 Get all leagal actions

        Returns:
            encoded_action_list (list): return encoded legal action list (from str to int)
        
rlcard/envs/blackjack.py