I am having a tough time creating a balanced schedule.
I have 9 A players and 9 B players, and 4 courts.
In each round, each of the four games teams an A player with a B player vs. an A player and B player. One A player and one B player get a buy in each round.
I would like to make a round robin where all players get one buy, with the schedule as balanced as possible, for 9 rounds, and all players spread across the courts evenly.
Any help would be appreciated.