public static string Interpret(string tape) { var processor = new Interpreter(); tape.ToList().ForEach(command => { if (processor.ValidCommands.Contains(command)) { processor.ProcessCommand(command); } }); System.Console.WriteLine(processor); System.Console.WriteLine(processor.GetCurrentMemoryValue()); return(processor.GetTape()); }