Code:
#
# 38 team schedule, 162 games
# Designed for the following configuration:
# 2 subleagues, each with 3 divisions
# 1st subleague with divisions of 6, 7, 7 teams
# 2nd subleague with divisions of 6, 6, 6 teams
#
# First subleague 6-team division
# 11 games against 3 of other 5 teams in division (4H/7A or 7H/4A)
# 12 games against 2 of other 5 teams in division (6H/6A)
# 6 games against other 14 teams in league (3H/3A)
# 3 games against 7 teams in other subleague (3H or 3A)
#
# First subleague 7-team divisions
# 11 games against other 6 teams in division (4-7H/4-7A)
# 6 games against other 13 teams in league (3H/3A)
# 3 games against 6 teams in other subleague (3H or 3A)
#
# Second subleague
# 13 games against 1 of other 5 teams in division (5H/8A or 8H/5A)
# 14 games against 4 of other 5 teams in division (7H/7A)
# 6 games against other 12 teams in league (3H/3A)
# 3 games against 7 teams in other subleague (3H or 3A)
#
#
# No homestands or roadtrips longer than 14 games
# All-Star Break considered to break homestand/roadtrip leading into it
#
# Teams play as many as 20 consecutive days without offday
#
# All teams play 13-14 weekend series at home
#
# All weekday game times set at 7:05pm
# Saturday game times 30%-1:05pm, 20%-4:05pm, 50%-7:05pm
# Sunday game times 60%-1:05pm, 25%-4:05pm, 15%-7:05pm
# Exceptions 1:05pm getaway days (where both teams play elsewhere next day)
#
# Season begins first Friday on or after March 29
# Season ends late September/early October
# Season spans 185 days
#
# All-Star Game first Tuesday after July 9 (day 103)
#
# Built 2023-03-18
#