Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local i = 0
- while i ~= 1000 do
- if turtle.detect() then
- if math.random(2) == 1 then
- turtle.turnRight()
- else
- turtle.turnLeft()
- end
- else
- turtle.forward()
- if math.random(3) == 1 then
- if math.random(2) == 1 then
- turtle.turnLeft()
- else
- turtle.turnRight()
- end
- end
- end
- i = i+1
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement