def get_communicator(episode, agents, alternate=False):
    """
    This function selects the communicator.
    :param episode: The current episode.
    :param agents: The agents in the game.
    :param alternate: Alternate the leader or always the same.
    :return: The id of the communicating agent and the communicating agent itself.
    """
    if alternate:
        communicator = episode % len(agents)
    else:
        communicator = 0
    communicating_agent = agents[communicator]
    return communicator, communicating_agent