def get_legal_actions(state):
        ''' Return the legal actions for current player

        Returns:
            (list): A list of legal actions
        '''
        if state['valid_act'] == ['play']:
            state['valid_act'] = state['action_cards']
            return state['action_cards']
        else:
            return state['valid_act']
 Return the legal actions for current player

        Returns:
            (list): A list of legal actions
        
rlcard/games/mahjong/game.py