The computer's I/O system has been updated since the this was written, as such, updated the options passed to the computer to allow it to continue running.
@@ -6,5 +6,8 @@ const demos = [
[4, 0, 99],
];
-const c = new Computer(input);
+const c = new Computer(input, {
+ inputFromConsole: true,
+ outputToConsole: true,
+});
c.Run();
@@ -12,5 +12,8 @@ const demos = [
[3, 4, 1001, 1, 0, 50, 1006, 50, 0, 4, 50, 99],