|
@ -46,6 +46,15 @@ char** Schachbrett_erstellen() { |
|
|
return Brett; |
|
|
return Brett; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void print_Schachfeld(char** Brett, int Reihen, int Spalten) { |
|
|
|
|
|
for (int i = 0; i < Reihen; i++) { |
|
|
|
|
|
for (int j = 0; j < Spalten; j++) { |
|
|
|
|
|
printf(" %c ", Brett[i][j]); |
|
|
|
|
|
} |
|
|
|
|
|
printf("\n"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void Schachbrettspeicher_freigeben(char** Brett, int Reihen) { |
|
|
void Schachbrettspeicher_freigeben(char** Brett, int Reihen) { |
|
|
if (Brett == NULL) { |
|
|
if (Brett == NULL) { |
|
|
return; |
|
|
return; |
|
|