import csv


def team2machine(cur_round):
    """Compute the map from teams to machines."""
    # Get the config with the teamname-source mappings.
    config_name = f"configs/config_round_{cur_round}.csv"
    team_machine = {}
    with open(config_name, 'r') as infile:
        reader = csv.reader(infile)
        for row in reader:
            team_machine[row[0]] = row[1]
    return team_machine