|
@ -22,12 +22,12 @@ char* bauer_umwandel_abfrage(char** Brett, int startX, int startY, int endX, int |
|
|
|
|
|
|
|
|
if(ist_umwandlung_gerlaubt_Bauer(Brett ,startX,startY,endX,endY,player) == true){ |
|
|
if(ist_umwandlung_gerlaubt_Bauer(Brett ,startX,startY,endX,endY,player) == true){ |
|
|
char* Figur; |
|
|
char* Figur; |
|
|
printf("Welche Figur soll erstellt werden?"); |
|
|
|
|
|
|
|
|
printf("Which piece would you like to create?"); |
|
|
if(player == PLAYER_WHITE){ |
|
|
if(player == PLAYER_WHITE){ |
|
|
printf("Q für Dame, R für Turm, B für Läufer oder N für Springer"); |
|
|
|
|
|
|
|
|
printf("Q for Queen, R for Rook, B for Bishop, or N for Knight"); |
|
|
Figur = getUserInput(); |
|
|
Figur = getUserInput(); |
|
|
}else{ |
|
|
}else{ |
|
|
printf("q für Dame, r für Turm, b für Läufer oder n für Springer"); |
|
|
|
|
|
|
|
|
printf("q for Queen, r for Rook, b for Bishop, or n for Knight"); |
|
|
Figur = getUserInput(); |
|
|
Figur = getUserInput(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -48,7 +48,7 @@ void bauer_umwandeln(char** Brett, int startX, int startY, int endX, int endY, P |
|
|
Brett[endY][endX] = Figur; |
|
|
Brett[endY][endX] = Figur; |
|
|
Brett[startY][startX] = ' '; |
|
|
Brett[startY][startX] = ' '; |
|
|
}else{ |
|
|
}else{ |
|
|
printf("Zug ungültig"); |
|
|
|
|
|
|
|
|
printf("Invalid move"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|