Open BlackDiamondWing opened 1 year ago
With the changes I made it is now automatically adding a fourth timeslot and places the not planed lessons, but it also overwrites the already planed lessons with freetime because the lecturers are not available and there are no lessons left to plan:
--> We also need to check whether a lesson is already set for this timeslot.
Found mistake, while testing solution attempt, that still needs to be fixed before this solution is usable:
Might occure because the number of timeslots and it's counter aren't the same:
For reasons we have 6 timeslots at the second day of the timetable and two of the elements are null:
If a Lecturer is only avaidable on Fridays, the Timetable will not extend over 3 Slots on Fridays
The following timetable was generally generated correctly but the problem that not all shouldHours are planned could be fixed by using the fourth timeslot and therefor is a case we don't consider: