Advertisement
Yazhog_g

Untitled

Mar 20th, 2023
770
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. def colorie(self):
  2.     region = self.renvoie_max()
  3.     while region != None:
  4.         region.couleur_attribuee = region.tab_couleur_disponible[0]
  5.         for reg in region.tab_voisines:
  6.             if region.couleur_attribue in reg.tab_couleurs_disponnibles:
  7.                 reg.tab_couleurs_disponnibles.remove(reg.couleur_attribue)
  8.         region = self.renvoie_max()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement