I am trying to create a schedule for 10 tennis players over 25 weeks.
Every week, there will be 2 courts of 4 people. Two people will have a bye each week.
Once on the court, the 4 people will decide amongst themselves who wants to play with whom.
I would like to balance the schedule, as much as is possible with 10 people, so that no two people are on the same court together a disproportionate amount of time. To be clear, I don't care if anyone is always playing on court 1 or mostly on court 2; I just don't want, for example, Person 1 and Person 2 being on the same court together 15 times and Person 1 and Person 8 only ever being on the same court together 3 times.
Any help would be appreciated. I've gotten pretty close with modifying some of what I've seen here, but find myself thinking that for those with skills, it's probably a short and elegant piece of code...