Posted 19 April 2014 - 04:17 AM
I am attempting to make a free-form hole filling turtle, but it keeps ignoring the nested if statements, it instead just keeps running the while loop while missing the if statements inside completely.
http://pastebin.com/4yLKaD6H
The turtle is supposed to hit a wall, detect if the wall is a specific block, if its not then it will navigate around the block, turn around and start a new line until it finally hits the target end block.
Currently the turtle hits the first wall, announces that it has hit a wall, and then just loops back to the beginning of the while loop and ignoring the if statement for noticing a wall has been hit.
http://pastebin.com/4yLKaD6H
The turtle is supposed to hit a wall, detect if the wall is a specific block, if its not then it will navigate around the block, turn around and start a new line until it finally hits the target end block.
Currently the turtle hits the first wall, announces that it has hit a wall, and then just loops back to the beginning of the while loop and ignoring the if statement for noticing a wall has been hit.