From 14b5d91aafe14c8507b6541538b61818e74fbdcd Mon Sep 17 00:00:00 2001 From: Siamak Date: Fri, 10 Feb 2023 16:11:50 +0100 Subject: [PATCH] Richting oben weiter --- src/Spiellogik.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Spiellogik.c b/src/Spiellogik.c index 3959fee..11a1272 100644 --- a/src/Spiellogik.c +++ b/src/Spiellogik.c @@ -114,6 +114,11 @@ int update(int realU[N][N],char richtung) { if (ii == N - 1) { return 1; } + if (realU[ii + 1][jj] == (N * N) + 1) { + realU[ii + 1][jj] = groesste + 1; + apple(realU); + speed = speed + 20; + } } int probe(int input){