From 8c68f9c0b512bbe0ea8b1a8fd39e7dc21a8b0cc1 Mon Sep 17 00:00:00 2001 From: Siamak Date: Thu, 8 Feb 2024 14:37:48 +0100 Subject: [PATCH] =?UTF-8?q?Testfunktion=20f=C3=BCr=20O=20gewinnt=20waagere?= =?UTF-8?q?cht=20unten=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 5ba556e..c0e9b06 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -99,6 +99,12 @@ int o_wins_10_11_12(char board[][3]) { } } +int o_wins_20_21_22(char board[][3]) { + if (board[2][0] == 'O' && board[2][1] == 'O' && board[2][2] == 'O') { + return 1; + } +} + int stringCharacterCounter(char string[]) { int stringLength = 0;