Преглед изворни кода

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 година
родитељ
комит
d3f6d1fd99
2 измењених фајлова са 8 додато и 2 уклоњено
  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();