|
@ -43,7 +43,12 @@ char* bauer_umwandel_abfrage(char** Brett, int startX, int startY, int endX, int |
|
|
|
|
|
|
|
|
void bauer_umwandeln(char** Brett, int startX, int startY, int endX, int endY, Player player){ |
|
|
void bauer_umwandeln(char** Brett, int startX, int startY, int endX, int endY, Player player){ |
|
|
|
|
|
|
|
|
Brett[endY][endX] = bauer_umwandel_abfrage(Brett,startX,startY,endX,endY,player); |
|
|
|
|
|
|
|
|
char* Figur = bauer_umwandel_abfrage(Brett,startX,startY,endX,endY,player); |
|
|
|
|
|
if(Figur != 'W'){ |
|
|
|
|
|
Brett[endY][endX] = Figur; |
|
|
Brett[startY][startX] = ' '; |
|
|
Brett[startY][startX] = ' '; |
|
|
|
|
|
}else{ |
|
|
|
|
|
printf("Zug ungültig"); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|