Generating a Sports League Season Schedule

Generating a Sports League Season Schedule

Hello,

I've been putting together a sports scheduling application for a commercial league (teams are scheduled based upon their venue and time criteria provided to us upon registration) - It works well enough as is, where the time slots are uploaded from a spreadsheet and the teams that are available for the place/time are the choice for "Team 1" and the choice for the opponent "Team 2" is at the same level of playing ability as the first team. No one team can exceed 8 games played, and no match up of Team 1 and Team 2 can exceed two games. 

As I said, it works we enough when scheduling on a game-by-game basis, but I'm writing to see if anyone would have any suggestion about how to take it to the next level - i.e. If I wanted to just pre-load all the pertinent information, press a button, and have my entire season scheduled.

Does anyone have an example of an application which would do something similar, say maybe one that would generate an employee work schedule based on their availability and maximum amount of hours.

Any help that could be given would be much appreciated.

Thanks,

Dan