|
@ -5,27 +5,32 @@ |
|
|
#include<stdlib.h> |
|
|
#include<stdlib.h> |
|
|
#include<time.h> |
|
|
#include<time.h> |
|
|
#include<stdbool.h> |
|
|
#include<stdbool.h> |
|
|
#include<ConditionalMacros.h> |
|
|
|
|
|
|
|
|
|
|
|
#define N 40 |
|
|
#define N 40 |
|
|
void Umgebung(char str[N][N]); |
|
|
void Umgebung(char str[N][N]); |
|
|
void delay(int ms); |
|
|
void delay(int ms); |
|
|
|
|
|
|
|
|
int main(){ |
|
|
int main(){ |
|
|
|
|
|
|
|
|
|
|
|
char g; |
|
|
|
|
|
while((g=getchar())!=EOF){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
char str[N][N]; |
|
|
|
|
|
Umgebung(str); |
|
|
|
|
|
|
|
|
char str[N][N]; |
|
|
|
|
|
Umgebung(str); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
re 0; |
|
|
re 0; |
|
|
} |
|
|
} |
|
|
void delay(int ms){ |
|
|
void delay(int ms){ |
|
|
clock_t start = clock(); |
|
|
clock_t start = clock(); |
|
|
while (clock()< start + ms); |
|
|
|
|
|
|
|
|
while (clock() < start + ms); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
void Umgebung(char str[N][N]){ |
|
|
void Umgebung(char str[N][N]){ |
|
|
|
|
|
|
|
|
system("cls"); |
|
|
system("cls"); |
|
|
printf("\n"); |
|
|
printf("\n"); |
|
|
printf("\tHerzlichen Willkommen zum Spiel \n"); |
|
|
printf("\tHerzlichen Willkommen zum Spiel \n"); |
|
|