Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = 10
- y = 10
- i = 0
- ii = 0
- function build()
- while(i < x) do
- while(ii < y) do
- ii = ii + 1
- forward()
- end
- i = i + 1
- if (i % 2 == 0) then
- turnLeft()
- else
- turnRight()
- end
- ii = 0
- end
- end
- function forward()
- turtle.forward()
- turtle.placeDown()
- end
- function turnRight()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- function turnLeft()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- build()
Add Comment
Please, Sign In to add comment