Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def colorie(self):
- region = self.renvoie_max()
- while region != None:
- region.couleur_attribuee = region.tab_couleur_disponible[0]
- for reg in region.tab_voisines:
- if region.couleur_attribue in reg.tab_couleurs_disponnibles:
- reg.tab_couleurs_disponnibles.remove(reg.couleur_attribue)
- region = self.renvoie_max()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement