Browse Source

Design die Apfel

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

4
src/Umgebung.c

@ -61,9 +61,9 @@ void Umgebung(int str[N][N]){
printf("\033[96m%c \033[0m", 179); printf("\033[96m%c \033[0m", 179);
for (int j = 0; j < N; j++) { for (int j = 0; j < N; j++) {
if (str[i][j] == (N * N) + 1)printf("\033[91m%c%c\033[0m", 222, 221);
if (str[i][j] == (N * N) + 1)printf("\033[91m%c%c\033[0m", 64,64);
else if (str[i][j] == 0)printf(" "); else if (str[i][j] == 0)printf(" ");
else printf("\033[93m%c%c\033[0m", 219, 219);
else printf("\033[93m%c%c\033[0m", 64,64);
} }
printf("\033[96m %c \033[0m", 179); printf("\033[96m %c \033[0m", 179);
printf("\n"); printf("\n");

Loading…
Cancel
Save