Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local r = require("robot") --для работы нужно запускать на роботе
- local component = require("component")
- function n_col()
- r.turnRight()
- r.forward()
- r.turnLeft()
- end
- function dig()
- for col=1,70 do
- r.swing()
- r.swingUp()
- r.up()
- end
- for col=1,70 do
- r.down()
- end
- end
- ----------\\
- for k=1,20 do
- for m=1,2 do
- r.swing()
- for i=1,10 do
- r.forward()
- end
- end
- r.turnRight()
- dig()
- n_col()
- end
Advertisement
Add Comment
Please, Sign In to add comment