From ac6449793176decbec4475c8eca350e82417458d Mon Sep 17 00:00:00 2001 From: Siamak Date: Fri, 10 Feb 2023 12:36:51 +0100 Subject: [PATCH] Schnelligkeit bestimmen --- src/Spiellogik.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Spiellogik.c b/src/Spiellogik.c index 7d788bc..6f7735f 100644 --- a/src/Spiellogik.c +++ b/src/Spiellogik.c @@ -89,7 +89,11 @@ if(richtung == 'u') { if(ii == 0) { return 1; } - + if(realU[ii + 1] [jj] == (N * N) + 1) { + realU[ii + 1] [jj] = groesste + 1; + apple(realU); + speed = speed + 10; + } }