From 3d0c37abd798cafba8871d3fc3bd3b684e01abba Mon Sep 17 00:00:00 2001 From: Siamak Date: Thu, 9 Feb 2023 21:39:43 +0100 Subject: [PATCH] =?UTF-8?q?Speed=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Spiellogik.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Spiellogik.c b/src/Spiellogik.c index a8bff15..94f158a 100644 --- a/src/Spiellogik.c +++ b/src/Spiellogik.c @@ -1,5 +1,5 @@ #define _CRT_SECURE_NO_WARNINGS // to write faster -#define re return +#define re return #define N 20 // size of Play Field #include #include @@ -7,6 +7,7 @@ #include #include +int speed = 0; int win(int realU[N][N]){ int groesste = 0; @@ -60,7 +61,7 @@ int lose(int realU[N][N], char richtung){ else if (richtung == 'l') { if (realU[ii][jj-1] != (N*N) + 1 && realU[ii][jj-1] != 0 || jj == 0) { return 1; - + } } else { @@ -73,4 +74,4 @@ int lose(int realU[N][N], char richtung){ int probe(int input){ return input; -} \ No newline at end of file +}