Convert to a logger so I can see results in terminal or IDE

This commit is contained in:
2020-12-11 09:36:28 -06:00
parent aa8d9b5fdb
commit 97d7d0141d
12 changed files with 46 additions and 49 deletions

5
Q07.cs
View File

@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
@ -100,7 +99,7 @@ namespace _2020
}
var result = totalContain.Distinct();
Debug.WriteLine($"Q07Part1: total contain={result.Count()}");
Util.Log($"Q07Part1: total contain={result.Count()}");
}
static int GetNumBagsContainedIn(BagType bag)
@ -122,7 +121,7 @@ namespace _2020
int bagsNeeded = GetNumBagsContainedIn(shinyGoldBag);
Debug.WriteLine($"Q07Part2: bags needed={bagsNeeded}");
Util.Log($"Q07Part2: bags needed={bagsNeeded}");
}
}
}