From 6c6e8dfc12e409909a2b7bf5d4bb71b6d8db1fe5 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Wed, 26 Mar 2025 21:21:55 +0000 Subject: [PATCH] change output chars --- w/w.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/w/w.c b/w/w.c index ac56428..bf936fa 100644 --- a/w/w.c +++ b/w/w.c @@ -228,7 +228,15 @@ void update(char command) char replacechar(char in, int y) { - + if (in == 'w') + { + return '#'; + } + else if (in == 'd') + { + return '*'; + } + return in; } @@ -258,7 +266,7 @@ void draw() } else { - printf("%c", pov[y][x]); + printf("%c", replacechar(pov[y][x], y)); } } printf(" |\n");