Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local action = math.random(1,3)
- if action == 1 then
- turtle.turnLeft()
- end
- if action == 2 then
- turtle.turnRight()
- end
- if action == 3 then
- local distance = math.random(1,10)
- for i = 1,distance do
- turtle.forward()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement