From 5c0125d804675a869a1b6709a8d6fabc87111e32 Mon Sep 17 00:00:00 2001 From: Siamak Date: Wed, 7 Feb 2024 16:53:25 +0100 Subject: [PATCH] Kreis gewinnt senkrecht links-Funktion erstellt. --- src/c/funktionen.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/c/funktionen.c b/src/c/funktionen.c index a152ca0..19f8742 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -71,6 +71,12 @@ int x_wins_00_01_02(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 string_character_counter(char string[]) { int stringLength = 0;