Place your turtle on the starting point and program using while loops (similar code merged together and repeated) to reach the end of the path while destroying obstacles and building a larger bridge
DEFINITION
Extremely similar to “loops” but instead of telling the turtle to do an action a specific number of times it continues to complete the action while something is either in its way or isn’t. For this we use either “detect() = false” meaning nothing is in the turtle’s way or “detect() = true” if something is in the turtle’s way
eg: while turtle.detect() = false do (new line) turtle.dig() (new line) turtle.forward() (new line) end.
This code means that while something is in the turtle’s way it will dig the obstacle in it’s way then move forward. This is the code for the obstacle, you must create the code for building the bridge and to make it through the path as well