Exemplo n.º 1
0
        public override void UpdateInstruction()
        {
            if (robot.CompareItem(compareDirection, comparison, true, -1, -1))
            {
                // Comparison was successful
                instructionExecutor.JumpToInstruction(trueTarget);
            }

            // Comparison failed
            instructionExecutor.ExecuteNextInstruction();
        }
Exemplo n.º 2
0
 public override void UpdateInstruction()
 {
     // Jump to new position
     instructionExecutor.JumpToInstruction(jumpTarget);
     instructionExecutor.ExecuteNextInstruction();
 }