-
Notifications
You must be signed in to change notification settings - Fork 2
/
synthèse
36 lines (30 loc) · 930 Bytes
/
synthèse
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Damien Audras
Algorithme de synthèse.
cellules=matrice de cellules
temps=nombre de lignes de la matrice cellules
fonction init_matrice()
fonction init_ecran()
fonction1()= création d'une nouvelle ligne de cellules -> augmente la matrice cellules d'une ligne
fonction2()= affichage de la dernière ligne de la matrice
fonction3()= scroll
fonction4()= zoom
fonction5()= affichage des stats de la matrice cellules
fonction ou drapeau accident()= bool
fonction ou variable temps()= int
fonction fin()
fonction5()
écran de fin
fonction boucle:
fonction1()
fonction2()
si hauteur max dépassé : fonction3()
si largeur max dépassé : fonction4()
si temps écoulé ou bouton fin ou accident() : return fin()
sinon : return boucle()
interface=Tk()
init_matrice()
init_ecran()
si appuie sur un bouton zoom -> fonction4()
si appuie sur un bouton scroll -> fonction3()
boucle()
interface.mainloop()