View Single Post
Old 10-28-2015, 11:16 PM   #14
Fishbreath
Minors (Double A)
 
Fishbreath's Avatar
 
Join Date: Oct 2015
Posts: 145
I'm about halfway through the fancier scheduling logic. It has three parts, one of which is trivial:

1. Opponent pool generation. Figure out which teams play which teams over the course of the season. Takes some finagling to figure out the best pools for asymmetric structures with too few games to play round robin. I wrapped this up tonight.

2. Matchup generation. Figure out how many times each team plays each other team. Trivial in the main, but harder for pools with asymmetric membership. (If a pool includes two teams from one division and three from another, we have to schedule extra matchups somewhere for the three-team group. Ideally it'll stay inside the pool, but I'm not sure I can make that generalize all the time.)

3. Schedule generation. Fit the scheduled matchups into a calendar. This will be the hard part. Lots of constraints to get right (or wrong), and a myriad of ways to start a schedule that's impossible to complete. We'll see how it goes.
Fishbreath is offline   Reply With Quote