Browse Source

Update computer options

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.
ApisNecros 1 year ago
parent
commit
d3f6d1fd99
2 changed files with 8 additions and 2 deletions
  1. 4 1
      5/5_1.js
  2. 4 1
      5/5_2.js

+ 4 - 1
5/5_1.js

@@ -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();

+ 4 - 1
5/5_2.js

@@ -12,5 +12,8 @@ const demos = [
     [3, 4, 1001, 1, 0, 50, 1006, 50, 0, 4, 50, 99],
 ];
 
-const c = new Computer(input);
+const c = new Computer(input, {
+    inputFromConsole: true,
+    outputToConsole: true,
+});
 c.Run();