Relative Content

Tag Archive for pythonsports-league-scheduling-problem

Teams not having enough scheduled games in scheduling algorithm

I am making a basketball simulation game and it obviously needs a scheduling system. This is my current attempt which somewhat works, however, not all teams get to the amount of games they need. I am aiming for each team to have 8 regular (non-conference) games and 12 conference games for a total of 19-20 games. Additionally, teams can’t play twice in one week and teams shouldn’t have repeat opponents (unless impossible). Currently, teams are only getting about 15-19 games when they should be at 19-20. I’ve tried tons of different things, but I just can’t get to my desired output.