Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Width - Length: ")
- local W=read()
- local L=read()
- local W1=W
- local L1=L
- turtle.turnLeft()
- turtle.turnLeft()
- local i=0
- while not i==L do
- turtle.forward()
- turtle.placeDown()
- i=i+1
- end
- i=1
- while not W==0 and not L==0 do
- W1=W1-i
- while not W1==0 do
- turtle.forward()
- turtle.placeDown()
- end
- L1=L1-i
- while not L1==0 do
- turtle.forward()
- turtle.placeDown()
- end
- i=i+1
- end
- write("Done!")
Advertisement
Add Comment
Please, Sign In to add comment