public void Learn(int track) { if (duplicate) { AdvancesTrack = AdvancesTrack.Copy(); duplicate = false; } BackTrack = new ScheduleStack(); AdvancesTrack.Push(track); }
public void RollBack() { if (duplicate) { AdvancesTrack = AdvancesTrack.Copy(); BackTrack = BackTrack.Copy(); duplicate = false; } BackTrack.Push(AdvancesTrack.Pop()); }