diff --git a/src/main/c/TicTacToe.c b/src/main/c/TicTacToe.c index a01df1b..c1f9a33 100644 --- a/src/main/c/TicTacToe.c +++ b/src/main/c/TicTacToe.c @@ -25,7 +25,15 @@ void Bild(char Feld[3][3]) { #endif for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { - printf("%c ", Feld[i][j]); + if (Feld[i][j] == '_') { + printf(ANSI_COLOR_BRIGHT_YELLOW"%c "ANSI_COLOR_RESET, Feld[i][j]); + } + else if (Feld[i][j] == 'X') { + printf(ANSI_COLOR_BRIGHT_CYAN"%c "ANSI_COLOR_RESET, Feld[i][j]); + } + else { + printf(ANSI_COLOR_BRIGHT_RED"%c "ANSI_COLOR_RESET, Feld[i][j]); + } } printf("\n"); }