Advertisement
tankflo

Untitled

Apr 25th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. if tour==compteur2 then
  2. tour=tour+2
  3. compteur2=1
  4. if droitegauche==1 then
  5. turtle.turnRight()
  6. droitegauche=0
  7. turtle.turnRight()
  8. else
  9. turtle.turnLeft()
  10. turtle.turnLeft()
  11. droitegauche=1
  12. end
  13. else
  14. coin=(tour+2)/2
  15. if coin==compteur2 then
  16. if droitegauche==0 then
  17. turtle.turnRight()
  18. else
  19. turtle.turnLeft()
  20.  
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement