Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from robot import *
- forms = [0]*13
- c = [0]*6
- place = 1
- p = 0
- def remonter():
- ramasser()
- haut()
- deposer()
- bas()
- bas()
- while surObjet():
- if surObjetPlein():
- if surRond():p = 0
- if surCarre():p = 1
- if surTriangle():p = 2
- if surObjetPoints():
- if surRond():p = 3
- if surCarre():p = 4
- if surTriangle():p = 5
- forms[place-1] = p
- c[p] += 1
- droite()
- place += 1
- t = c.index(max(c))
- while place != 1:
- gauche()
- place -= 1
- if forms[place-1] == t:
- remonter()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement