diff options
Diffstat (limited to 'Day17.cs')
-rw-r--r-- | Day17.cs | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/Day17.cs b/Day17.cs index f9da08a..2438ee9 100644 --- a/Day17.cs +++ b/Day17.cs @@ -1,5 +1,4 @@ using System; -using System.ComponentModel; using System.Linq; using System.Text; using aoc2019.lib; @@ -12,13 +11,11 @@ namespace aoc2019 private readonly IntCodeVM vm; - public Day17() + public Day17() : base(17, "Set and Forget") { vm = new IntCodeVM(Input.First()); } - public override int DayNumber => 17; - protected override string Part1() { vm.Reset(); @@ -44,13 +41,13 @@ namespace aoc2019 protected override string Part2() { - vm.Reset(); - vm.memory[0] = 2; - var halt = IntCodeVM.HaltType.Waiting; - while (halt == IntCodeVM.HaltType.Waiting) - { - halt = vm.Run(); - } + //vm.Reset(); + //vm.memory[0] = 2; + //var halt = IntCodeVM.HaltType.Waiting; + //while (halt == IntCodeVM.HaltType.Waiting) + //{ + // halt = vm.Run(); + //} return ""; } } |