Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function turnL()
- turtle.turnLeft()
- go()
- go()
- go()
- turtle.turnLeft()
- end
- function turnR()
- turtle.turnRight()
- go()
- go()
- go()
- turtle.turnRight()
- end
- function go()
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- end
- function repete(rep,rep2)
- cpt = 0
- while (rep2>cpt) do
- for i=1,rep do
- go()
- end
- turnL()
- for i=1,rep do
- go()
- end
- turnR()
- cpt = cpt+1
- end
- end
- print("combien de longueur voulez vous ?")
- rep = read()
- rep = rep+0 -- mise en int
- print("combien de couloir voulez vous ?")
- rep2 = read()
- rep2 = rep2+0
- repete(rep,rep2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement