diff --git a/src/c/labyrinth.c b/src/c/labyrinth.c index 7cb860a..6880654 100644 --- a/src/c/labyrinth.c +++ b/src/c/labyrinth.c @@ -70,7 +70,7 @@ void labyrinthschritte(lab laby, int hoehe, int breite, int schritte, int versuc for(int i = 0; i < hoehe; i++){ for(int j = 0; j < breite; j++){ - if(laby[i][j] == '1'){ + if(laby[i][j] == MAUER){ printf("■ "); } else if(laby[i][j] == WEG){ diff --git a/src/c/labyrinth.h b/src/c/labyrinth.h index 0147da5..cd64f0a 100644 --- a/src/c/labyrinth.h +++ b/src/c/labyrinth.h @@ -7,6 +7,7 @@ #define MAXSPALTEN 10 #define WEG '0' #define MARKIERT 'X' +#define MAUER '1' typedef char lab[MAXZEILEN][MAXSPALTEN]; int printlabyrinth(lab laby, int hoehe, int breite);