Exemple #1
0
add_players_team(create_list_players(11), atl_madrid)
atl_madrid.calculate_average_overall()

milan = create_team('Milan')
list_of_teams.append(realmadrid)
add_players_team(create_list_players(11), milan)
milan.calculate_average_overall()

inter = create_team('Inter')
list_of_teams.append(realmadrid)
add_players_team(create_list_players(11), inter)
inter.calculate_average_overall()

torneio = Tournament(
    [milan, realmadrid, barcelona, inter, juventus, atl_madrid])
torneio.create_games()
torneio.simulate_games()
torneio.assign_points()

while True:
    print("Menu")
    print("1-Criar lista jogadores para um time")
    print("2-Criar um time")
    print("3-Simular Partida")
    comando = input()
    if comando == '1':
        nome_time = input(
            "Digite o nome do time que deseja adicionar jogadores")
        for time in list_of_teams:
            if time.name == nome_time:
                qtd_jogadores = int(