Hello,
I am trying to build a schedule generator for 4 - 20ish teams that has the following restrictions:
- There are 4 unique games, Game A, Game B, Game C, Game D
- No team plays the same game twice
- No team plays the same team twice (except if there are 4 teams, then one pairing goes twice)
- There are 4 rounds
In my mind I was trying to build something like this for an example with 8 teams
Game A Game B Game C Game D
Round1 1v5 2v6 3v7 4v8
Round2 3v8 4v5 1v6 2v7
Round3 4v6 1v7 2v8 3v5
Round4 2v7 3v8 4v5 1v6
Every team plays every game, however Round4 Game C is a repeat of Teams 4v5.
And I did this by hand... which is not ideal! I'd like help using some of the good work on this forum to understand how I could automate this.
Other notes:
- I can make the teams even so I don't have to worry about byes, but if I don't have to that would be nice
- For larger numbers of teams like 12-20 teams, I can have more of the same games... for example:
Game A Game B Game C Game D Game A Game B Game C Game D
Round1 1v5 2v6 3v7 4v8 9v16 10v15 11v14 12v13
...
But I don't want any team to play the same game twice still even if they are in different 'rooms'
Any help is much appreciated!
Thanks, Kal