From b18ec9f552111f8f03409509bbdbcb73d0a1da85 Mon Sep 17 00:00:00 2001 From: Siamak Date: Fri, 10 Feb 2023 17:26:24 +0100 Subject: [PATCH] Rechtsfunktion weiter --- src/Spiellogik.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Spiellogik.c b/src/Spiellogik.c index d1b65c1..219e40b 100644 --- a/src/Spiellogik.c +++ b/src/Spiellogik.c @@ -164,6 +164,12 @@ int update(int realU[N][N],char richtung) { if (jj == N - 1) { return 1; } + if (realU[ii][jj + 1] == (N * N) + 1) { + realb[ii][jj + 1] = groesste + 1; + apple(realU); + speed = speed + 20; + } + } int probe(int input){