def _print_state(state, raw_legal_actions, action_record):
    ''' Print out the state

    Args:
        state (dict): A dictionary of the raw state
        action_record (list): A list of the each player's historical actions
    '''
    _action_list = []
    for i in range(1, len(action_record)+1):
        _action_list.insert(0, action_record[-i])
    for pair in _action_list:
        print('>> Player', pair[0], 'chooses', pair[1])

    print('\n=============   Dealer Hand   ===============')
    print_card(state['dealer hand'])

    num_players = len(state) - 3

    for i in range(num_players):
        print('===============   Player {} Hand   ==============='.format(i))
        print_card(state['player' + str(i) + ' hand'])

    print('\n=========== Actions You Can Choose ===========')
    print(', '.join([str(index) + ': ' + action for index, action in enumerate(raw_legal_actions)]))
    print('')
 Print out the state

    Args:
        state (dict): A dictionary of the raw state
        action_record (list): A list of the each player's historical actions
    
rlcard/agents/human_agents/blackjack_human_agent.py