diff --git a/.DS_Store b/.DS_Store index 7db3cfc7620c61be9d8fde923d585642becfa3b5..a6129eb245f3d17cafa480434911d783df23afcd 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/Projet/.DS_Store b/Projet/.DS_Store index 467feec1eb1da20798a49ef91e27c4c67f24c65d..0116c89f37a6e79ad9ddb9eb7a803a279f48370f 100644 Binary files a/Projet/.DS_Store and b/Projet/.DS_Store differ diff --git a/Projet/README.md b/Projet/README.md index dd22c9e95a1ce1b4950e5eda939a8805130ec462..8b54563b2be236b0571691b935f1774355b513fa 100644 --- a/Projet/README.md +++ b/Projet/README.md @@ -5,4 +5,7 @@ author : Louis Chmielewski # journal - 11/03 : organisation de la résolution du projet +- 11/03 : création du fichier fonction.py et réalisation de la la fonction moyenne_couleur_bloc +- 15/03 : réalisation de la fonction est_couleur_proche +- 15/03 : réalisation de la méthode __init__ pour la classe Bloc diff --git a/Projet/src/bloc.py b/Projet/src/bloc.py index f7f02fea8f6af0ebc91ba2dce97ce593c1e694a7..9f80b009d632888631d073d9f41640665f6bd825 100755 --- a/Projet/src/bloc.py +++ b/Projet/src/bloc.py @@ -27,14 +27,16 @@ class Bloc: self.image = image def __eq__(self, other): - """à_remplacer_par_ce_que_fait_la_fonction - + """ + Renvoie True si 2 images sont identiques au pixel près Précondition : Exemple(s) : $$$ """ - self.image == other.image + return self.image == other.image + + \ No newline at end of file