소스 검색

Update to run with input

ApisNecros 1 년 전
부모
커밋
4355b7bb20
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      2/2_1.js

+ 2 - 2
2/2_1.js

@@ -10,7 +10,7 @@ const demos = [
     [1, 1, 1, 4, 99, 5, 6, 0, 99],
 ];
 
-const computer = new Computer(demos[0]);
+const computer = new Computer(input);
 computer.Run();
-console.log(computer.stack.Get(0));
+console.log(computer.stack.GetAtIndex(0, 1));
 // computer.DumpMemory();