So I have 3 to 8 players, I want each one to play against all the others 1 vs 1. The matches are done sequentially one at a time. The ordering within a pair isn't important (a vs b == b vs a).
I'm creating the matchup pairs in a simple nested loop, in which I loop over the players and pair the current index with all the following indexes.
The problem is that player 1 will play all his matches and then have nothing to do, while player 8 will have to wait.
Is there any way to evenly distribute the pairs, so all players have equal downtime?
I'm currently randomizing the array containing the pairs, but I'm looking for a better way.