|
|
|
@ -35,7 +35,7 @@ int springe(int x, int y, int s) {
|
|
|
|
|
zeigebrett();
|
|
|
|
|
exit(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (gueltig(x-1,y+2)) springe(x-1,y+2,s+1);
|
|
|
|
|
if (gueltig(x+1,y+2)) springe(x+1,y+2,s+1);
|
|
|
|
|
if (gueltig(x+2,y+1)) springe(x+2,y+1,s+1);
|
|
|
|
@ -44,8 +44,8 @@ int springe(int x, int y, int s) {
|
|
|
|
|
if (gueltig(x-1,y-2)) springe(x-1,y-2,s+1);
|
|
|
|
|
if (gueltig(x-2,y-1)) springe(x-2,y-1,s+1);
|
|
|
|
|
if (gueltig(x-2,y+1)) springe(x-2,y+1,s+1);
|
|
|
|
|
|
|
|
|
|
/* printf("oje: Nehme Zug zurück!\n");
|
|
|
|
|
|
|
|
|
|
/* printf("oje: Nehme Zug zurück!\n");
|
|
|
|
|
zeigebrett();
|
|
|
|
|
*/
|
|
|
|
|
zurueck++;
|
|
|
|
|