Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from robot import *
- for i in range(0,11):
- while not surObjet() or surTrou():
- haut()
- if bordGrilleAuDessus()==1:
- droite()
- while bordGrilleEnDessous()!=1:
- bas()
- ramasser()
- while bordGrilleEnDessous()!=1:
- bas()
- while not surTrou() or surObjet():
- haut()
- if bordGrilleAuDessus()==1:
- droite()
- while bordGrilleEnDessous()!=1:
- bas()
- deposer()
- gauche()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement