Browse Source

Design Umgebung

remotes/origin/fdai7402-main-patch-42180
fdai7225 2 years ago
parent
commit
b860399c5b
  1. 4
      src/Umgebung.c

4
src/Umgebung.c

@ -58,14 +58,14 @@ void Umgebung(int str[N][N]){
for (int i = 0; i < N * 2 + 2; i++)printf("\033[96m%c\033[0m", 95);
printf("\033[96m%c\n\033[0m", 191);
for (int i = 0; i < N; i++) {
printf("\033[96m%c \033[0m", 179);
printf("\033[96m%c \033[0m", 47);
for (int j = 0; j < N; j++) {
if (str[i][j] == (N * N) + 1)printf("\033[91m%c%c\033[0m", 64,64);
else if (str[i][j] == 0)printf(" ");
else printf("\033[93m%c%c\033[0m", 126,126);
}
printf("\033[96m %c \033[0m", 179);
printf("\033[96m %c \033[0m", 47);
printf("\n");
}
printf("\033[96m%c\033[0m", 192);

Loading…
Cancel
Save