Advertisement
Guest User

mauer

a guest
Nov 13th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. a = 0
  2. write("Mauer in X:")
  3. X = io.read()
  4. write("Mauer in Y:")
  5. Y = io.read()
  6. c = a+X
  7. d = a+Y
  8. d1 = a+Y
  9. while c > 0 do
  10.   while d > 0 do
  11.     turtle.place()
  12.     turtle.up()
  13.     d = (d - 1)
  14.    end
  15.    d = (d + d1)
  16.    while not turtle.detectDown() do
  17.    turtle.down()
  18.   end
  19.     turtle.turnRight()
  20.     turtle.forward()
  21.     turtle.turnLeft()
  22. c = (c - 1)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement