From 8e695a48291dd15190432a8a81adbee596fb18ef Mon Sep 17 00:00:00 2001 From: Ronja Awe Date: Thu, 2 Feb 2023 15:37:53 +0100 Subject: [PATCH] =?UTF-8?q?refactoring:=20labyrinthausgabe=20versch=C3=B6n?= =?UTF-8?q?ert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/c/labyrinth.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/c/labyrinth.c b/src/c/labyrinth.c index d2996ea..9dc72ba 100644 --- a/src/c/labyrinth.c +++ b/src/c/labyrinth.c @@ -11,8 +11,14 @@ int printlabyrinth(lab laby, int hoehe, int breite){ for(int i = 0; i < hoehe; i++){ - for(int j = 0; j < breite; j++){ - printf("%c ", laby[i][j]); + for(int j = 0; j < breite; j++){ + if(laby[i][j] == '1'){ + printf("■ "); + } + + else{ + printf("%c ", laby[i][j]); + } } printf("\n"); }