Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- write("wie weit soll gegraben werden ?")
- lange = io.read()
- shell.run("clear")
- write("wie breit?")
- breit = io.read()
- shell.run("clear")
- function tf()
- for forward = 0,lange do
- turtle.dig()
- turtle.forward()
- if forward == lange then
- tb()
- end
- end
- end
- function tb()
- switch = 0
- for breite = 0,breit do
- if switch == 0 then
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- switch = 1
- else
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- switch = 0
- end
- end
- end
- shell.run("clear")
- tf()
- print("Auftrag wird nun erledigt")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement