public Clone(Clone clonedItem) { history = new ItemsStack <string>() { Head = clonedItem.history.Head, Tail = clonedItem.history.Tail }; rollbacks = new ItemsStack <string>() { Head = clonedItem.rollbacks.Head, Tail = clonedItem.rollbacks.Tail }; }
public void Learn(string programm) { history.Push(programm); rollbacks = new ItemsStack <string>(); }
public Clone() { history = new ItemsStack <string>(); rollbacks = new ItemsStack <string>(); }