I have a program where the user may choose from 4-10 teams and then choose how many times these are to play against each other (1 - 3 times)
So the first round could be
Team 1 vs Team 2
Team 3 vs Team 4
Team 5 vs Team 6
now the thing is that the algorithm i want should make sure that all teams play against each other the chosen times and that each team should have equally many Home and Away games, left and right in my example... Does someone have a fast example of how this can be accomplished ?