From 18287b82cb7cba1536c3ecdc2c12c88f4a78a832 Mon Sep 17 00:00:00 2001 From: Siamak Date: Thu, 8 Feb 2024 13:36:32 +0100 Subject: [PATCH] =?UTF-8?q?Die=20Funktion=20f=C3=BCr=20O=20gewinnt=20senkr?= =?UTF-8?q?echt=20links=20wurde=20erstellt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/c/funktionen.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/c/funktionen.c b/src/c/funktionen.c index 6292eba..1366193 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -69,6 +69,12 @@ int x_wins_02_11_20(char board[][3]) { } } +int o_wins_00_10_20(char board[][3]) { + if (board[0][0] == 'O' && board[1][0] == 'O' && board[2][0] == 'O') { + return 1; + } +} + int stringCharacterCounter(char string[]) { int stringLength = 0;