Browse Source

void zu int zum Test

main
fdai7225 2 years ago
parent
commit
d51a02bb97
  1. 12
      src/Umgebung.c

12
src/Umgebung.c

@ -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;
}
@ -76,7 +77,8 @@ void RealU(int realU1[N][N]){
realU1[0][1]=2;
realU1[0][2]=3;
realU1[0][3]=4;// Köpf der Schlange
return realU1[i][j];
}
void Score(int score){

Loading…
Cancel
Save