Advertisement
Guest User

Untitled

a guest
Dec 17th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. from robot import *
  2. x=0
  3. y=0
  4. bas()
  5. for i in range(13):
  6. if surRond():
  7. x=x+1
  8. elif surCarre():
  9. y=y+1
  10. droite()
  11. for i in range(13):
  12. if x>y:
  13. gauche()
  14. if surRond():
  15. ramasser()
  16. haut()
  17. deposer()
  18. bas()
  19. if y>x:
  20. gauche()
  21. if surCarre():
  22. ramasser()
  23. haut()
  24. deposer()
  25. bas()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement