Exemple #1
0
void affiche_jeu(P4 jeu) {
    int i;
    printf("\n");
    affiche_trait();
    for (i=6; i>0; i--) {
        affiche_ligne(jeu, i);
        affiche_trait();
    }
    printf("\n");
    printf("\t  1   2   3   4   5   6   7\n");
    return;
}
Exemple #2
0
void affiche_grille (grille g){
	int i, l=g.nbl, c=g.nbc;
	printf("\n");
	printf("temps t = %d\n", temps); 
	affiche_trait(c);
	for (i=0; i<l; ++i) {
		affiche_ligne(c, g.cellules[i]);
		affiche_trait(c);
	}	
	printf("\n"); 
	return;
}
Exemple #3
0
void affiche_grille (grille g){
    int i, l=g.nbl, c=g.nbc;
    static int temps=0; //compteur de temps d'évolution
    printf("Temps d'évolution: %d",temps++);
    printf("\n");
	affiche_trait(c);
	for (i=0; i<l; ++i) {
        affiche_ligne(c, g.cellules[i]);
		affiche_trait(c);
	}	
	printf("\n"); 
	return;
}