résolution du problème liée au tableau et fin de l'affichage du plateau initiale
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user