From fe0626233dc26a7ad859b357322512fee9ddd375 Mon Sep 17 00:00:00 2001 From: Ronja Awe Date: Thu, 2 Feb 2023 15:47:58 +0100 Subject: [PATCH] =?UTF-8?q?refactoring:=20Mauer=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/c/labyrinth.c | 2 +- src/c/labyrinth.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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);