Quote:
Originally Posted by UltimateAverageGuy
This is an excellent setup gmo thank you for posting this. Will the home/away alternate each year using this?
|
It does not strictly alternate, but the game does randomly mix up teams with in each division each year.
The slotting of games has matchups:
Code:
1 @ 17 18 @ 1 1 @ 19 20 @ 1
17 @ 2 2 @ 18 19 @ 2 2 @ 20
3 @ 17 18 @ 3 3 @ 19 20 @ 3
17 @ 4 4 @ 18 19 @ 4 4 @ 20
Suppose you have teams A, B, C, D in first division of first subleague and teams Q, R, S, T in first division of second subleague.
First year A=1, B=2, C=3, D=4 and Q=17, R=18, S=19, T=20. So that means:
Code:
A @ Q R @ A A @ S T @ A
Q @ B B @ R S @ B B @ T
C @ Q R @ C C @ S T @ C
Q @ D D @ R S @ D D @ T
The next year could be whatever permutation for each division, such as A=1, B=4, C=2, D=3 and Q=19, R=17, S=18, T=20. So that would mean the matchups become:
Code:
A @ R S @ A A @ Q T @ A
R @ C C @ S Q @ C C @ T
D @ R S @ D D @ Q T @ D
R @ B B @ S Q @ B B @ T
If you played the schedule infinite times you would expect it to converge to home/away balance for every team. But with on how the teams move randomly within the slots, it is basically a coin flip whether the home/away for a particular matchup would be the same from one year to the next.