public static void Day17_SolutionB() { Day17Spinlock sut = new Day17Spinlock { Factor = 376 }; for (int i = 1; i <= 50000000; i++) { sut.Spin(i); if (i % 10000 == 0) { Console.WriteLine($"Index = {i}"); Console.WriteLine($"Buffer[0] is {sut.Buffer[0]}"); Console.WriteLine($"Buffer[1] is {sut.Buffer[1]}"); } } Console.WriteLine($"End Buffer[0] is {sut.Buffer[0]}"); Console.WriteLine($"EndBuffer[1] is {sut.Buffer[1]}"); }
public void TestSetup() { sut = new Day17Spinlock(); }