résolution du problème liée au tableau et fin de l'affichage du plateau initiale

This commit is contained in:
2023-11-25 20:33:18 +01:00
parent dc9ba3e4fe
commit 2783bc984b
2 changed files with 26 additions and 28 deletions

View File

@@ -15,7 +15,7 @@ int** plateau_init(void) {
int ligne_pomme, colonne_pomme, i;
int ** tableau = NULL;
int** tableau = NULL;
srand(time(NULL));
@@ -23,7 +23,7 @@ int** plateau_init(void) {
/* allocation du tableau dans le tas */
tableau = calloc(LIGNES, sizeof(int));
tableau = calloc(LIGNES, sizeof(double));
for ( i = 0; i < LIGNES; i++) {
@@ -67,8 +67,9 @@ int** plateau_init(void) {
tableau[ligne_pomme][colonne_pomme] = 2;
}
return tableau;