Code:
#
# 31 team schedule, 162 games
# Designed for the following configuration:
# 2 subleagues
# first with 3 divisions of 5, 6, and 5 teams
# second with 3 division each of 5 teams
#
# No interleague play - subleagues are independent
#
#
# First subleague:
#
# 5-team divisions:
# 16-17 games against 4 other teams in division (7-9H/7-9A)
# 9 games against 11 other teams (3 or 6H / 3 or 6A)
# 6 games against 1 other team (3H/3A)
#
# 6-team division:
# 14-15 games against 5 other teams in division (6-9A/6-9H)
# 9 games against 10 other teams (3 or 6H / 3 or 6A)
#
# Teams play as many as 20 consecutive days without offday
#
# All teams play 13-14 weekend series at home
#
#
# Second subleague:
#
# 18 games against 4 other teams in division (8-10H/8-10A)
# 9 games against 11 other teams (3 or 6H / 3 or 6A)
#
# Because of odd number of teams, at least one team off at all times
# Most team offdays come during the 4 breaks each has when off while other teams play
# Those breaks are scattered through the schedule but not spread evenly through the season
# Teams play as many as 28 consecutive days without offday
#
# The Mon-Sun usual "baseball" week is not followed here because of offday distribution
# Series can begin any day of the week
#
#
# No homestands or roadtrips longer than 13 games
#
# 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 13 (day 103)
# Though may not work with single subleague and odd number of divisions
#
# Built 2024-05-06
#