I have been asked to create round robin schedules for a 3v3 volleyball tournament where the following criteria must be met: (from most important to least important)
Each player plays with another no more than once
Each player gets to play at least 4 times
Each player cannot sit out for more than one round
Each player does not play against another player more
than twice
The question I am struggling to brute force is the case when I have: 40 players 4 courts
I’ve been able to brute force a semi functional solution for 15 teams but it’s become too unwieldy to do it by hand so I was thinking of trying a program in java. I am not entirely sure how I can go about making a brute force program to do this. I am currently attempting to use a list of every possible team of 3 and inserting them into the schedule. Then iterating over them replacing until the game works.
Here is another version of the same question asked by someone else https://eso-community.net/viewtopic.php?t=9816
The top answer here has provided perfect solutions to teams of 8-13