Update Main.scala

This commit is contained in:
kamoshi 2019-12-05 21:06:01 +01:00 committed by GitHub
parent af8814a3c1
commit c44b6be64d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
package day5
import day5.opcode.{Action, Jump, OpCode1, OpCode2, OpCode99}
import day5.opcode.{Action, Jump, OpCode99}
import scala.io.Source
@ -11,7 +11,7 @@ object Main {
def opCodeRunner(tape: Array[Int], nextPtr: Int): Boolean =
{
//println("=======\nParsing at "+nextPtr+": ["+tape(nextPtr)+", "+tape(nextPtr+1)+", "+tape(nextPtr+2)+", "+tape(nextPtr+3)+ "]");
val tuple = OpCode1.parseInt(tape(nextPtr));
val tuple = OpCode99.parseInt(tape(nextPtr));
//println("Executing: " + tuple)
tuple match
{