From dc0f98fbfea51835fcaa26d0fb8100ca0e7147b8 Mon Sep 17 00:00:00 2001 From: fdai7225 Date: Wed, 25 Jan 2023 12:34:05 +0100 Subject: [PATCH] =?UTF-8?q?Vorbreitungs=20f=C3=BCr=20Input?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Umgebung.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Umgebung.c b/src/Umgebung.c index edb91f6..8599735 100644 --- a/src/Umgebung.c +++ b/src/Umgebung.c @@ -20,9 +20,10 @@ int main(){ realU[i][j]=0; } } - realU[0][0]=1; - realU[0][1]=1; - realU[0][2]=1; + realU[0][0]=1;// Ende der Schlange + realU[0][1]=2; + realU[0][2]=3; + realU[0][3]=4;// Köpf der Schlange @@ -32,7 +33,7 @@ int main(){ Apfel(realU); if(g!=EOF){ - while(true){ + while(true){ Umgebung(realU);