Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- contadorx = 0
- contadory = 0
- term.setTextColor(colors.orange)
- term.setBackgroundColor(colors.white)
- textutils.slowPrint("longitud")
- largo = tonumber(read())
- term.setTextColor(colors.orange)
- term.setBackgroundColor(colors.white)
- textutils.slowPrint("ancho")
- ancho = tonumber(read())
- vuelve = ancho
- while contadorx < ancho do
- turtle.placeDown()
- turtle.forward()
- contadory = contadory + 1
- if contadory == largo then
- while contadory > 0 do
- turtle.back()
- contadory = contadory - 1
- end
- contadory = 0
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- contadorx = contadorx + 1
- end
- if contadorx == ancho then
- turtle.turnLeft()
- while vuelve > 0 do
- turtle.forward()
- vuelve = vuelve - 1
- end
- end
- end
- turtle.turnRight()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement