From 403fd219da53cef366d89b28afdde9d0e13e2dcc Mon Sep 17 00:00:00 2001 From: Simon Hildebrandt Date: Wed, 7 Feb 2024 12:43:01 +0100 Subject: [PATCH] 3 del old Board --- src/main/c/TicTacToe.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/c/TicTacToe.c b/src/main/c/TicTacToe.c index 837e2a2..31999f4 100644 --- a/src/main/c/TicTacToe.c +++ b/src/main/c/TicTacToe.c @@ -12,6 +12,11 @@ void Brett(char Feld[3][3]) { } } void Bild(char Feld[3][3]) { +#ifdef _WIN32 + system("cls"); +#else + system("clear"); +#endif for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { printf("%c ", Feld[i][j]);