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");