public void Learn(int programIndex) { LearnedPrograms.Push(programIndex); while (CanceledPrograms.Head != null) { CanceledPrograms.Pop(); } }
public void Check() { if (LearnedPrograms.Head == null) { Console.WriteLine("basic"); } else { var c = LearnedPrograms.Pop(); LearnedPrograms.Push(c); Console.WriteLine(c); } }
public void Relearn() { LearnedPrograms.Push(CanceledPrograms.Pop()); }