Put me in coach!

This app can be used to generate lineups for sports games with multiple periods. Given 5 (or more) players, it generates a lineup where the team is competitive during all the periods. Subject to common, important constraints:
1. Players get tired after three periods, so they need to rest.
2. Parents don't like when players are benched for multiple consecutive periods.
3. Playing time is distributed roughly equally.

Player Name Skill Level


Check initial line-up checkbox and provide 5 starting players. This step is optional.