Implement yearly intake functionality in school simulation, allowing for the graduation of students and the addition of new first-year pupils. Update the roster management to reflect these changes, ensuring proper entity handling in the simulation. Enhance the API to support name sets during roster installation and revise related tests to validate the new intake process and roster updates.
This commit is contained in:
@@ -9,11 +9,11 @@ internal readonly record struct FamilyPlan(int FamilyIndex, IReadOnlyList<PupilS
|
||||
/// </summary>
|
||||
internal static class FamilyPlanner
|
||||
{
|
||||
public static IReadOnlyList<FamilyPlan> Plan(int schoolSeed, IReadOnlyList<PupilSeat> seats)
|
||||
public static IReadOnlyList<FamilyPlan> Plan(int schoolSeed, IReadOnlyList<PupilSeat> seats, int startIndex = 0)
|
||||
{
|
||||
var plans = new List<FamilyPlan>();
|
||||
var offset = 0;
|
||||
var index = 0;
|
||||
var index = startIndex;
|
||||
while (offset < seats.Count)
|
||||
{
|
||||
var remaining = seats.Count - offset;
|
||||
|
||||
Reference in New Issue
Block a user