diff --git a/philosopher_example/controleurPhilosophersExample.py b/philosopher_example/controleurPhilosophersExample.py index c1c39ba46b2e9e16130cd4ed1481dc55d6350c25..ff276325345a11079b3ee2555d92b3ecd7de2ddd 100644 --- a/philosopher_example/controleurPhilosophersExample.py +++ b/philosopher_example/controleurPhilosophersExample.py @@ -71,6 +71,7 @@ class ControleurPhilosophersExample(Controleur): if state == State.EATING: self.change_color(self.__philosophers[i], 'green') self.increaseValue(self.__chart[0],i, 1) + self.logsDisplay('Mr '+str(i)+' : Je mange') elif state == State.HUNGRY: self.change_color(self.__philosophers[i], 'red') @@ -90,3 +91,5 @@ class ControleurPhilosophersExample(Controleur): self.change_color(self.__right[i],'black') else: self.change_color(self.__right[i],'white') + + self.errorDisplay('Controleur','Non en fait tout va bien')