From 530a307836ddc5c018c3d0722caa4460bc44e342 Mon Sep 17 00:00:00 2001 From: Siamak Date: Thu, 8 Feb 2024 14:18:43 +0100 Subject: [PATCH] =?UTF-8?q?Funktion=20f=C3=BCr=20O=20gewinnt=20waagerecht?= =?UTF-8?q?=20oben=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 175130c..12db92a 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -87,6 +87,12 @@ int o_wins_02_12_22(char board[][3]) { } } +int o_wins_00_01_02(char board[][3]) { + if (board[0][0] == 'O' && board[0][1] == 'O' && board[0][2] == 'O') { + return 1; + } +} + int stringCharacterCounter(char string[]) { int stringLength = 0;