|
|
@ -19,6 +19,15 @@ int berechneMinen(int hoehe, int breite) { |
|
|
|
|
|
|
|
char** erschafe_minenfeld(int hoehe, int breite, char inerhalb) { |
|
|
|
char** minenfeld = (char**)calloc(hoehe, sizeof(char*)); |
|
|
|
for (int i = 0; i < hoehe; i++) { |
|
|
|
minenfeld[i] = (char*)calloc(breite, sizeof(char)); |
|
|
|
} |
|
|
|
for (int i = 0; i < hoehe; i++) { |
|
|
|
for (int j = 0; j < breite; j++) { |
|
|
|
minenfeld[i][j] = inerhalb; |
|
|
|
} |
|
|
|
} |
|
|
|
return minenfeld; |
|
|
|
} |
|
|
|
|
|
|
|
int minesweeper() { |
|
|
|