Advertisement
Wired2coffee

Maze Runner

Feb 27th, 2012
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. while true do
  2. turtle.turnRight()
  3. this = turtle.detect()
  4. if this == false then
  5. turtle.forward()
  6. else
  7. turtle.turnLeft()
  8. this2 = turtle.detect()
  9. if this2 == true then
  10. turtle.turnRight()
  11. turtle.turnRight()
  12. else
  13. turtle.forward()
  14. end
  15. end
  16. if turtle.detectDown() == false then
  17. break
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement