diff --git a/PJ/bloc.py b/PJ/bloc.py index fccd4bf1fa15f25b4f8c9f050656d6e3a12ef9a5..0f998caeae4c2f11be2a03efec14e6f87fb69f48 100644 --- a/PJ/bloc.py +++ b/PJ/bloc.py @@ -35,9 +35,13 @@ class Bloc: def sont_proches(c1:tuple[int,int,int],c2:tuple[int,int,int],c3:tuple[int,int,int],c4:tuple[int,int,int]) ->bool: - """Renvoie True si les 4 couleurs sont proches + """Renvoie True si les couleurs des 4 blocs sont proches """ + c1=self.couleur + c2=bloc1.couleur + c3=bloc2.couleur + c4=bloc3.couleur cm=couleur_moyenne([c1,c2,c3,c4]) return coul_sont_proches(c1,cm)and coul_sont_proches(c2,cm) and coul_sont_proches(c3,cm) and coul_sont_proches(c4,cm)