diff --git a/.DS_Store b/.DS_Store index 20ed3982cb89f32381cc4851d15b4d3a8c4eefd7..326440fc414c4a6b7b618de62449d46ba9aedee2 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/Projet/.DS_Store b/Projet/.DS_Store index 8958a33e120a1f879db5114abbf82168b4d4fb33..a7665f9af89478bc2c51519131dfbf5860f29c35 100644 Binary files a/Projet/.DS_Store and b/Projet/.DS_Store differ diff --git a/Projet/src/bloc.py b/Projet/src/bloc.py index 09a0742c0753d7a57f8b2f3cbc9f1bd5b4be0ac3..ae18af371f2583aaa03f3d74a838504b43c75bf5 100755 --- a/Projet/src/bloc.py +++ b/Projet/src/bloc.py @@ -36,7 +36,7 @@ class Bloc: """ return self.image == other.image - def est_bloc_uniforme(): + def est_bloc_uniforme()->bool: """ Renvoie True si le bloc est un bloc uniforme Précondition : aucune @@ -47,7 +47,7 @@ class Bloc: return pixel_hl == pixel_lr - def est_bloc_non_uniforme(): + def est_bloc_non_uniforme()-> bool: """ Renvoie True si le bloc n'est pas uniforme, c'est à dire si il peut être divisé en 4 blocs @@ -58,6 +58,20 @@ class Bloc: """ return not(est_bloc_uniforme()) + def sont_4_blocs_uniformes_proches(bloc1: Bloc, bloc2: Bloc, bloc3: Bloc, bloc4: Bloc)-> bool: + """ + Renvoie True si les 4 blocs uniformes sont proches + Précondition : aucune + Exemple(s) : + $$$ + + """ + parametres = [bloc1, bloc2, bloc3, bloc4] + for i in parametres(1,len(parametres)-1): + + + +