diff options
author | Ben Harris <ben@tilde.team> | 2020-12-16 18:06:36 -0500 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2020-12-16 18:06:36 -0500 |
commit | cb10768fa14c4b6ec19d050e13a0c3e00c152874 (patch) | |
tree | 2da56b45700f5dd1bde994cbeae04f18424a17c3 /Day09.cs | |
parent | 837527d487c7e232b36dd87c95a15b7852f2e057 (diff) |
move project to subdirectory and add unit testing
day 13 is removed from the test so it doesn't take 4 years
Diffstat (limited to 'Day09.cs')
-rw-r--r-- | Day09.cs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/Day09.cs b/Day09.cs deleted file mode 100644 index 0f45dfd..0000000 --- a/Day09.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System.Linq; -using aoc2019.lib; - -namespace aoc2019 -{ - internal sealed class Day09 : Day - { - private readonly IntCodeVM vm; - - public Day09() : base(9, "Sensor Boost") - { - vm = new IntCodeVM(Input.First()); - } - - protected override string Part1() - { - vm.Reset(); - vm.Run(1); - return $"{vm.output.ToDelimitedString(",")}"; - } - - protected override string Part2() - { - vm.Reset(); - vm.Run(2); - return $"{vm.output.ToDelimitedString(",")}"; - } - } -} \ No newline at end of file |