|
@ -5,17 +5,21 @@ |
|
|
#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]; |
|
|
char str[N][N]; |
|
|
Umgebung(str); |
|
|
Umgebung(str); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
re 0; |
|
|
re 0; |
|
|
} |
|
|
} |
|
@ -26,6 +30,7 @@ void delay(int 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"); |
|
|