Skip to content
Snippets Groups Projects
Commit fa560789 authored by Jdrezen's avatar Jdrezen
Browse files

Ajout de logs

parent 84d8b65e
No related branches found
No related tags found
No related merge requests found
......@@ -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')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment