I am trying to generate the schedule for the league that has N
players where N%2=0
Let's say for example I want to generate the schedule for 6 players (A, B, C, D, E, F)
making distinct pairs.
Consider AB != BA
and should be tracked as distinct pairs
Having 6 players there should be 30 different pairs.
The number of pair combinations is pairsCount / (N / 2)
None of the following contest's pairs can be the same, e.g. if contest 1 had pair AB, contest 2 shouldn't have AB.
(AB) (CD) (EF)
(AC) (BE) (CF)
...
(BA) (DC) (FE)
...
I tried following this solution
Algorithm to generate all permutations of pairs without repetition
The problem is that following contest's pairs are the same as previous contest. I hope you will understand my problem and show me a good example on generating this kind of schedule.