|
|
@ -55,19 +55,21 @@ void labyrinthschritte(lab laby, int hoehe, int breite, int schritte){ |
|
|
|
|
|
|
|
int antwort = 0; |
|
|
|
|
|
|
|
for(int i = 0; i < hoehe; i++){ |
|
|
|
for(int j = 0; j < breite; j++){ |
|
|
|
printf("%c ", laby[i][j]); |
|
|
|
} |
|
|
|
printf("\n"); |
|
|
|
} |
|
|
|
printf("\n"); |
|
|
|
|
|
|
|
antwort = 14; |
|
|
|
|
|
|
|
if(antwort == schritte){ |
|
|
|
printf("Richtig, Sie brauchen %d Schritte.\n", schritte); |
|
|
|
|
|
|
|
for(int i = 0; i < hoehe; i++){ |
|
|
|
for(int j = 0; j < breite; j++){ |
|
|
|
printf("%c ", laby[i][j]); |
|
|
|
} |
|
|
|
printf("\n"); |
|
|
|
} |
|
|
|
printf("\n"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |