Advertisement
sebbu

1ADS-Mini-Projet

Jan 27th, 2013
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.10 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. /*  moore
  5. x   x   x
  6. x   o   x
  7. x   x   x
  8. */
  9. /*  von neumann
  10. #   x   #
  11. x   o   x
  12. #   x   #
  13. */
  14. /*3.2.1*/
  15. void dimensionnement(int *n, int *m);
  16. void initialisation(int **tab, int n, int m);
  17. int nb_generation();
  18. void affiche(int **tab, int n, int m);
  19. void affiche_fichier(int **tab, int n, int m, char *nom);
  20. void saisie_B_M(int B[9]);
  21. void saisie_S_M(int S[9]);
  22.  
  23. /*3.2.2*/
  24. int nb_voisins_M(int **tab, int i, int j);
  25. void duplication(int **tab1, int **tab2, int n, int m);
  26. void generation_suivante_M(int **tab1, int **tab2, int n, int m, int B[9], int S[9]);
  27.  
  28. /*3.2.3*/
  29. void jeu_M(int **tab1, int n, int m, int B[9], int S[9], int ng);
  30.  
  31. /*3.2.4*/
  32. void jeu_conway(int **tab1, int n, int m, int ng);/*B3/S23*/
  33. void jeu_fredkin_M(int **tab1, int n, int m, int ng);/*B1357/S1357*/
  34.  
  35. /*3.3*/
  36. /*von neumann*/
  37. int nb_voisins_VN(int **tab, int i, int j);
  38. void generation_suivante_VN(int **tab1, int **tab2, int n, int m, int B[9], int S[9]);
  39. /*B13/S13*/
  40.     /*TODO*/
  41.  
  42. /*4.1*/
  43. /*3 états*/
  44.     /*TODO*/
  45.  
  46. /*4.2*/
  47. /*fantome*/
  48.     /*TODO*/
  49.  
  50. int main(void) {
  51.     return EXIT_SUCCESS;
  52. }
  53. /**/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement