Guest User

Untitled

a guest
Jun 23rd, 2014
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. print("Width - Length: ")
  2. local W=read()
  3. local L=read()
  4. local W1=W
  5. local L1=L
  6. turtle.turnLeft()
  7. turtle.turnLeft()
  8. local i=0
  9.  
  10. while not i==L do
  11. turtle.forward()
  12. turtle.placeDown()
  13. i=i+1
  14. end
  15. i=1
  16. while not W==0 and not L==0 do
  17. W1=W1-i
  18. while not W1==0 do
  19. turtle.forward()
  20. turtle.placeDown()
  21. end
  22. L1=L1-i
  23. while not L1==0 do
  24. turtle.forward()
  25. turtle.placeDown()
  26. end
  27. i=i+1
  28. end
  29. write("Done!")
Advertisement
Add Comment
Please, Sign In to add comment