From c021ee3a8829b5e933776d571aa5f4ad99d0ab8e Mon Sep 17 00:00:00 2001 From: Simon Hildebrandt Date: Wed, 7 Feb 2024 17:08:24 +0100 Subject: [PATCH] 16 check round --- src/main/c/TicTacToe.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/c/TicTacToe.c b/src/main/c/TicTacToe.c index 14e960e..72f52ae 100644 --- a/src/main/c/TicTacToe.c +++ b/src/main/c/TicTacToe.c @@ -53,4 +53,13 @@ int Winner(char Feld[3][3]) { else return 2; } } + //Überprüfe Runde + for (int k = 0; k < 3; k++) { + for (int l = 0; l < 3; l++) { + if (Feld[k][l] == '_') { + return 9; + } + } + } + } \ No newline at end of file