modif affichage
This commit is contained in:
		
							
								
								
									
										5
									
								
								action.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								action.c
									
									
									
									
									
								
							| @@ -92,7 +92,7 @@ int main(void){ | ||||
| 		int init_1=retenue1; | ||||
| 		int init_2=retenue2; | ||||
|  | ||||
| while(nombre_execution<7500){ | ||||
| while(nombre_execution<10000){ | ||||
| 	int perdant=0; | ||||
| 	if(temps>5){ | ||||
|  | ||||
| @@ -147,7 +147,8 @@ while(nombre_execution<7500){ | ||||
| 	on marque que les virus sont à égalité. | ||||
| */ | ||||
|  | ||||
| printf("\033[32m \n egalité aucun virus n'a gagner \033[0m \n"); | ||||
| printf("\033[31m \n egalité aucun virus n'a gagner \033[0m \n"); | ||||
| ImageFin(3); | ||||
|  | ||||
| fclose(virus); | ||||
|  | ||||
|   | ||||
							
								
								
									
										
											BIN
										
									
								
								decod_instruction.o
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								decod_instruction.o
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										18
									
								
								graphique.c
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								graphique.c
									
									
									
									
									
								
							| @@ -19,11 +19,11 @@ void DessinerVirus(unsigned long int addresse, char* coul){ | ||||
| 	int y; | ||||
|  | ||||
| 	for(i=0;i<16;i++){ | ||||
| 		for(j=0;j<501;j++){ | ||||
| 		for(j=0;j<500;j++){ | ||||
| 			addresse=addresse-1; | ||||
| 			if(addresse==0){ | ||||
| 				x=35+j*3; | ||||
| 				y=20+i*55; | ||||
| 				x=j*3; | ||||
| 				y=i*55; | ||||
| 				break; | ||||
| 			} | ||||
| 		} | ||||
| @@ -32,7 +32,7 @@ void DessinerVirus(unsigned long int addresse, char* coul){ | ||||
| 		 | ||||
| 			} | ||||
| 		} | ||||
| 	DessinerRectangle(x, y, 3, 30); | ||||
| 	DessinerRectangle(35+x, 20+y, 3, 30); | ||||
| } | ||||
|  | ||||
| void PremiereImage(void){ | ||||
| @@ -45,7 +45,7 @@ void PremiereImage(void){ | ||||
|  | ||||
| 	for(i=0;i<16;i++){ | ||||
|  | ||||
| 		for(j=0;j<501;j++){ | ||||
| 		for(j=0;j<500;j++){ | ||||
|  | ||||
| 		DessinerRectangle(35+j*(x), 20+i*(y), lx, ly); | ||||
|  | ||||
| @@ -74,6 +74,14 @@ void ImageFin(int nb_image){ | ||||
| 	ChoisirCouleurDessin(c); | ||||
| 	EcrireTexte(650, 400, "Le virus numero 2 a gagner", 2); | ||||
| 	} | ||||
| 	if(nb_image==3){ | ||||
| 		c=CouleurParNom("white"); | ||||
| 		ChoisirCouleurDessin(c); | ||||
| 		EffacerEcran(c); | ||||
| 		c=CouleurParNom("black"); | ||||
| 		ChoisirCouleurDessin(c); | ||||
| 		EcrireTexte(650, 400, "egalite", 2); | ||||
| 	} | ||||
| 	Touche(); | ||||
| } | ||||
| #endif | ||||
							
								
								
									
										
											BIN
										
									
								
								graphique.o
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								graphique.o
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								superviseur
									
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								superviseur
									
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user