Update OpCode5.scala

This commit is contained in:
kamoshi 2019-12-09 22:21:28 +01:00 committed by GitHub
parent a802558779
commit 46c5d40c49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,12 @@
package intcode.opcode
/**
* Jump-If-True
* If the first parameter is non-zero, it sets the instruction pointer to the value from the second parameter.
* Otherwise, it does nothing.
*
* checkConditionAndJump -> returns boolean for condition and int for pointer
*/
case object OpCode5 extends Jump
{
/** length of an instruction */