Two versions to give each league the extra home games in one of the cases. The two are the same just with the leagues flipped.
Code:
#
# 30 team schedule, 43 games
# Designed for the following configuration:
# 2 subleagues, each with 3 divisions of 5 teams
#
#
# 2 games against 14 other teams in division subleague (1H/1A)
# 1 game against 15 teams in other division (1H or 1A)
#
# set as balanced schedule
#
# In version 1:
# First subleague teams all have one more home game than away game
# Second subleague teams all have one less home game than away game
# In version 2:
# First subleague teams all have one less home game than away game
# Second subleague teams all have one more home game than away game
#
# All games are in single-game series
# Each team plays each week:
# One game either Mon or Tue
# One game either Wed or Thu
# One game on each of Fri, Sat, and Sun
#
# Teams play no more than 4 consecutive games home or away
#
# All game times set at 7:05pm
#
# Season begins first Monday of April
# Season ends early June
# Season spans 63 days
#
# All-Star Game in mid-May after about 2/3rds of season completed
#
# Built 2019-04-09
#