From c7f2d823dde1d7a2265cb1f1e15cc915c97717c2 Mon Sep 17 00:00:00 2001 From: Ronja Awe Date: Wed, 1 Feb 2023 20:21:58 +0100 Subject: [PATCH] refactoring: statt 'X', MARKIERT eingesetzt --- 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 7a7683b..43c10c6 100644 --- a/src/c/labyrinth.c +++ b/src/c/labyrinth.c @@ -23,7 +23,7 @@ return 0; void wegsuchen(lab laby, bool* done, int y, int x, int ziely, int zielx){ - laby[y][x] = 'X'; + laby[y][x] = MARKIERT; if(x == zielx && y == ziely){ diff --git a/src/c/labyrinth.h b/src/c/labyrinth.h index 1ef7b8c..e35fe8a 100644 --- a/src/c/labyrinth.h +++ b/src/c/labyrinth.h @@ -6,6 +6,7 @@ #define MAXZEILEN 10 #define MAXSPALTEN 10 #define WEG '0' +#define MARKIERT 'X' typedef char lab[MAXZEILEN][MAXSPALTEN]; int printlabyrinth(lab laby, int hoehe, int breite);