Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local r = require("robot")
- print("кол-во вёдер капсул")
- c=io.read()
- local n=0
- while true do
- for i=1,c do
- r.forward()
- r.useDown()
- end;
- for i=1,c do
- r.back()
- end;
- r.turnLeft()
- for i=1,n do r.forward() end;
- r.turnLeft()
- for i=1,16 do
- r.select(i)
- r.drop() end;
- r.turnAround();
- n = n + 1
- print("нажмите enter для продолжения или stop для остановки")
- if io.read() == "stop" then break end;
- r.turnRight()
- for i=1,n do r.forward() end;
- r.turnLeft()
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement