|
|
@ -12,7 +12,7 @@ void ASCI();//Bellow you can find the function ASCI with which we designed the b |
|
|
|
int score = 0; |
|
|
|
void Anweisung(char s[N]); |
|
|
|
void Anweisung1(); |
|
|
|
void RealU(int realU1[N][N]); |
|
|
|
int RealU(int realU1[N][N]); |
|
|
|
void Score(int score); |
|
|
|
void Apfel(int realU[N][N]); |
|
|
|
void Umgebung(int str[N][N]); |
|
|
@ -63,10 +63,11 @@ void Anweisung1(){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void RealU(int realU1[N][N]){ |
|
|
|
int RealU(int realU1[N][N]){ |
|
|
|
int i,j; |
|
|
|
// für eine Schlange |
|
|
|
for (int i=0;i<N;i++){ |
|
|
|
for(int j=0;j<N;j++){ |
|
|
|
for ( i=0;i<N;i++){ |
|
|
|
for( j=0;j<N;j++){ |
|
|
|
|
|
|
|
realU1[i][j]=0; |
|
|
|
} |
|
|
@ -77,6 +78,7 @@ void RealU(int realU1[N][N]){ |
|
|
|
realU1[0][2]=3; |
|
|
|
realU1[0][3]=4;// Köpf der Schlange |
|
|
|
|
|
|
|
return realU1[i][j]; |
|
|
|
} |
|
|
|
|
|
|
|
void Score(int score){ |
|
|
|