about summary refs log tree commit diff
path: root/Day17.cs
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2020-12-16 17:17:35 -0500
committerBen Harris <ben@tilde.team>2020-12-16 17:17:35 -0500
commit837527d487c7e232b36dd87c95a15b7852f2e057 (patch)
tree21ddf9a63548ccc8c802fe5f158f3e6743a8e9f1 /Day17.cs
parentc66d1d6b335e6c2f6b544ae31793f318ba2b99a7 (diff)
refactor to two-digit day names and add puzzlename
Diffstat (limited to 'Day17.cs')
-rw-r--r--Day17.cs19
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 "";
         }
     }