Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public void TestNumber2020(string startingNumbers, int expected)
 {
     Assert.Equal(expected, MemoryGame.Number(startingNumbers, 2020));
 }
Esempio n. 3
0
 public void TestNumber(string startingNumbers, int iterations, int expected)
 {
     Assert.Equal(expected, MemoryGame.Number(startingNumbers, iterations));
 }