Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local robot = require("robot")
- while true do
- print("Введите [go] или [stop]")
- local a = io.read()
- if a == 'stop' then
- print("Программа остановлена")
- do return end
- else
- while true do
- if a == 'go' then
- robot.forward()
- robot.turnLeft()
- else
- print("Введите задачу")
- do return end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment