|
@ -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); |
|
|
for (int i = 0; i < N * 2 + 2; i++)printf("\033[96m%c\033[0m", 95); |
|
|
printf("\033[96m%c\n\033[0m", 191); |
|
|
printf("\033[96m%c\n\033[0m", 191); |
|
|
for (int i = 0; i < N; i++) { |
|
|
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++) { |
|
|
for (int j = 0; j < N; j++) { |
|
|
|
|
|
|
|
|
if (str[i][j] == (N * N) + 1)printf("\033[91m%c%c\033[0m", 64,64); |
|
|
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", 126,126); |
|
|
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("\n"); |
|
|
} |
|
|
} |
|
|
printf("\033[96m%c\033[0m", 192); |
|
|
printf("\033[96m%c\033[0m", 192); |
|
|