Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dig
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- end
- length = int(input("Length: "))
- width = int(input("Width: "))
- curLength = length
- curWidth = width
- while curLength > 0 do
- dig
- curLength -= 1
- end
- turtle.turnRight()
- while curWidth < 0 do
- dig
- curWidth -= 1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement