Browse Source

Änderung zum Test

main
fdai7225 2 years ago
parent
commit
809543e8ae
  1. 6
      src/Umgebung.c

6
src/Umgebung.c

@ -16,7 +16,7 @@ void RealU(int realU1[N][N]);
void Score(int score);
void Apfel(int realU[N][N]);
void Umgebung(int str[N][N]);
void delay(int ms); //in the first step it remains constant
int delay(int ms); //in the first step it remains constant
int main(){
srand(time(0));// damit wir ein Zufallszahl haben.
@ -97,11 +97,11 @@ void Score(int score){
}
}
void delay(int ms){
int delay(int ms){
clock_t start = clock();
while (clock() < start + ms);
return ms;
}
void Umgebung(int str[N][N]){

Loading…
Cancel
Save