Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function doTimes(times)
- for i = 1, times do
- robot.forward()
- end
- end
- function circle()
- doTimes(2)
- robot.turnRight()
- doTimes(2)
- robot.turnRight()
- doTimes(2)
- robot.turnRight()
- doTimes(2)
- robot.turnRight()
- end
- robot = require("robot")
- while true do
- circle()
- doTimes(3)
- circle()
- doTimes(3)
- circle()
- doTimes(3)
- robot.turnAround()
- doTimes(9)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement