public override Day Run() { dayOfMonth = 15; stopwatch.Start(); answer_part1 = MemoryGame.Number("0,20,7,16,1,18,15", 2020).ToString(); answer_part2 = MemoryGame.Number("0,20,7,16,1,18,15", 30000000).ToString(); return(this); }
public void TestNumber2020(string startingNumbers, int expected) { Assert.Equal(expected, MemoryGame.Number(startingNumbers, 2020)); }
public void TestNumber(string startingNumbers, int iterations, int expected) { Assert.Equal(expected, MemoryGame.Number(startingNumbers, iterations)); }