The two versions here have the home & away flipped but also the teams within each division are mixed up such that the two are not simply mirror images of each other.
Code:
#
# 20 team schedule, 132 games
# Designed for the following configuration:
# 2 subleagues each with 2 divisions, each with 5 teams
#
#
# 18 games against 3 other teams in division (9H/9A)
# 6 games against 5 other teams in league (3H/3A)
# 3 games against 10 teams in other league (3H or 3A)
#
#
# Only 3-game series
# All teams have one offday each week, either Mon or Thu
#
# No homestands or roadtrips longer than 12 games
# All-Star break counted as ending homestands/roadtrips
#
# Teams play 11-12 home weekend series
#
# All weekday game times set at 7:05pm
# Saturday game times 30% 1:05pm, 20% 4:05pm, 50% 7:05pm
# Sunday game times 50% 1:05pm, 30% 4:05pm, 20% 7:05pm
# Except 1:05pm game time for all getaway days for both teams
#
# Season begins first Friday on or after Apr12
# Season ends first Sunday on or after Sep15
# Season spans 157 days
#
# All-Star Game set for first Tuesday on or after Jul2 (day num 82)
#
# Built on 2022-11-05
#