From d62888c0fdfa92f4301a0a9b23f342159a2b6a37 Mon Sep 17 00:00:00 2001 From: Siamak Date: Wed, 7 Feb 2024 18:10:11 +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 19f8742..7ed1e81 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -77,6 +77,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 string_character_counter(char string[]) { int stringLength = 0;