Code:
#
# 15 team schedule, 132 games
# Designed for the following configuration:
# 2 subleagues, each with 2 divisions
# First subleague with divisions of 4 and 4 teams
# Second subleague with divisions of 4 and 3 teams
#
#
# 4-team divisions in first subleague
# 14 games against 3 other teams in division (7H/7A)
# 12 games against 4 teams in other division of subleague (6H/6A)
# 6 games against 7 teams in other subleague (3H/3A)
#
# 4-team division in second subleague
# 16 games against 3 other teams in division (7-9H/7-9A)
# 12 games against 3 teams in other division of subleague (6H/6A)
# 6 games against 8 teams in other subleague (3H/3A)
#
# 3-team division in second subleague
# 18 games against 2 other teams in division (8-10H/8-10A)
# 12 games against 4 teams in other division of subleague (6H/6A)
# 6 games against 8 teams in other subleague (3H/3A)
#
#
# Because of odd number of teams, at all times one team is on "bye" and not playing
# Teams may thus have as many as 5 consecutive offdays
# plus All-Star Break if on bye immediately before or after that
#
# No homestands or roadtrips longer than 13 games
# Byes and All-Star Break considered as ending homestands and roadtrips
# No team plays more than 20 straight days without an offday
#
# 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)
#
# Teams play no more than one game per day
#
# Season begins first Monday on or after March 29
# Season ends first Sunday on or after September 9
# Season spans 161 days
#
# All-Star Game set for first Wednesday on or after June 30 (season day 94)
#
# Teams play 10-11 weekend series at home
#
# Attempted to give teams offday immediately following a road interleague series
# Not able to accomplish in all cases
# Because of this preference and the distribution of interleague series,
# there are several weeks with all teams off the Thursday of the week
#
# Built 2025-09-10
#