Ian, thanks a lot, that’s fantastic!
Could we tweak the schedule to ensure the games are closely matched in terms of skill? Ideally, we want each team to have a similar aggregate skill level, so that player 12, being the strongest through to player 1, being the least skilled, are distributed in a way that makes each game competitive and balanced.
I've approached this by assigning each player a numerical ranking, with the top player receiving 12 points and the lowest-ranked player receiving 1 point. I then added up the points for each team in a game and determined the absolute difference in points between the teams. This value indicates the level of skill balance for each game; a lower total signifies a more evenly matched setup. My best attempt is the below which maintains the structure you provided but with player numbers swapped around. This leads to an overall total of 132. Is it possible to arrange the players to achieve an even more balanced total?
6 1 2 5
6 2 1 5
7 4 8 3
7 8 4 3
9 11 10 12
9 12 11 10
1 11 12 3
1 12 11 3
10 2 8 4
10 8 2 4
9 5 7 6
9 7 6 5
11 7 5 4
11 5 7 4
6 12 2 8
6 8 12 2
9 10 1 3
9 3 10 1
7 10 3 2
7 3 10 2
1 5 8 12
1 8 5 12
9 6 11 4
9 4 6 11
10 6 4 12
10 4 6 12
11 3 8 5
11 8 3 5
9 2 1 7
9 1 7 2