feat: solve puzzle 3

This commit is contained in:
Stevan Freeborn
2023-12-03 22:54:52 -06:00
parent 575b287b50
commit 19c35bc946
11 changed files with 777 additions and 19 deletions
+8 -1
View File
@@ -26,7 +26,14 @@ public class Program
? puzzleSolver.SumGameMinimumPowers(games)
: puzzleSolver.SumPossibleGameIds(games);
Console.WriteLine($"The sum of all possible game ids is {result}.");
if (args.Length > 1 && args[1] == "part2")
{
Console.WriteLine($"The sum of the minimum powers of all games is {result}.");
}
else
{
Console.WriteLine($"The sum of all possible game ids is {result}.");
}
return result;
}