|
@ -16,7 +16,7 @@ void RealU(int realU1[N][N]); |
|
|
void Score(int score); |
|
|
void Score(int score); |
|
|
void Apfel(int realU[N][N]); |
|
|
void Apfel(int realU[N][N]); |
|
|
void Umgebung(int str[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(){ |
|
|
int main(){ |
|
|
srand(time(0));// damit wir ein Zufallszahl haben. |
|
|
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(); |
|
|
clock_t start = clock(); |
|
|
while (clock() < start + ms); |
|
|
while (clock() < start + ms); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ms; |
|
|
} |
|
|
} |
|
|
void Umgebung(int str[N][N]){ |
|
|
void Umgebung(int str[N][N]){ |
|
|
|
|
|
|
|
|