From d10d4910fcb18a2976958d3f818ea2fc3baa831e Mon Sep 17 00:00:00 2001 From: Siamak Date: Thu, 8 Feb 2024 13:55:41 +0100 Subject: [PATCH] =?UTF-8?q?Funktion=20f=C3=BCr=20O=20gewinnt=20senkrecht?= =?UTF-8?q?=20in=20der=20Mitte=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 1366193..e5860c4 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -75,6 +75,12 @@ int o_wins_00_10_20(char board[][3]) { } } +int o_wins_01_11_21(char board[][3]) { + if (board[0][1] == 'O' && board[1][1] == 'O' && board[2][1] == 'O') { + return 1; + } +} + int stringCharacterCounter(char string[]) { int stringLength = 0;