Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("1=ja, 0=Nein")
- local p = tonumber(io.read())
- print("Gerade =0, Links =1, Rechts =2, Hinten =3")
- r = tonumber(io.read())
- print("Wie weit")
- m = tonumber(io.read())
- print("Wie hoch?")
- h34 = tonumber(io.read())
- function hx()
- for i = 1, math.abs(h34) do
- if h34 > 0 then
- turtle.up()
- else
- turtle.down()
- end
- end
- end
- function t()
- turtle.turnLeft()
- end
- for i = 1,p do
- for i = 1 , r do
- t()
- end
- hx()
- for i = 1 , m do
- turtle.forward()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment