From ff6738c73d6ad8e153fa8b97d4556891e7d2c926 Mon Sep 17 00:00:00 2001 From: Habib Date: Sun, 4 Feb 2024 15:47:10 +0100 Subject: [PATCH] x_wins_00_10_20() definiert --- src/c/funktionen.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/c/funktionen.c b/src/c/funktionen.c index 21abaa1..5d112b6 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -41,4 +41,10 @@ int power(int base, int power) { } return speicher; +} + +int x_wins_00_10_20(char board[][3]) { + if (board[0][0] == 'X' && board[1][0] == 'X' && board[2][0] == 'X') { + return 1; + } } \ No newline at end of file