Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- run = true
- spacesmoved = 0
- while run do
- if turtle.detect() then
- turtle.turnRight()
- elseif not turtle.detect() and spacesmoved <= 25 then
- turtle.forward(1)
- spacesmoved = spacesmoved + 1
- else
- run = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement