static void Main(string[] args) { string[] program = File.ReadAllLines(@"..\..\..\Input.txt"); HandheldGamesConsole handheldGamesConsole = new HandheldGamesConsole(program); handheldGamesConsole.Run(); Console.WriteLine("AoC 2020 - Day 08a"); }
static void Main(string[] args) { string[] program = File.ReadAllLines(@"..\..\..\Input.txt"); HandheldGamesConsole handheldGamesConsole = new HandheldGamesConsole(); string[] programCopy; int position = 0; bool looping = true; int accumulator = 0; while (position < program.Length && looping) { programCopy = (string[])program.Clone(); if (programCopy[position][..3].ToLower() != "acc")