def build_population(players, i, j, weights):
    """Return the population of strategies according to a given weights"""
    sub_players = players[i], players[j]
    population = []
    for player, weight in zip(sub_players, weights):
        for _ in range(weight):
            population.append(player.clone())
    return population