diff --git a/src/Umgebung.c b/src/Umgebung.c index 9ecd0f3..06de76d 100644 --- a/src/Umgebung.c +++ b/src/Umgebung.c @@ -14,6 +14,7 @@ printf("%d = %c\n", a , a); a++;} */ int score = 0; +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 @@ -55,12 +56,15 @@ int main(){ printf(" Game Over\n"); printf("Score: %d\n", score); }*/ - if (score == 0) { + Score(score); + re 0; +} + +void Score(int score){ + if (score == 0) { printf(" ____._.____\n"); printf(" [___________]\n\n"); printf("YOU LOSE\n\n"); - - } if (score == 7) { @@ -72,9 +76,8 @@ int main(){ printf("Nice\n\n"); printf("mach so weiter...\n\n"); } - - re 0; } + void delay(int ms){ clock_t start = clock(); while (clock() < start + ms);