|
|
@ -26,22 +26,19 @@ char* bauer_umwandel_abfrage(char** Brett, int startX, int startY, int endX, int |
|
|
|
if(player == PLAYER_WHITE){ |
|
|
|
printf("Q für Dame, R für Turm, B für Läufer oder N für Springer"); |
|
|
|
Figur = getUserInput(); |
|
|
|
if(Figur == 'Q' || Figur == 'R' || Figur == 'B' || Figur == 'N'){ |
|
|
|
return Figur; |
|
|
|
}else{ |
|
|
|
return 'P'; |
|
|
|
} |
|
|
|
}else{ |
|
|
|
printf("q für Dame, r für Turm, b für Läufer oder n für Springer"); |
|
|
|
Figur = getUserInput(); |
|
|
|
if(Figur == 'q' || Figur == 'r' || Figur == 'b' || Figur == 'n'){ |
|
|
|
return Figur; |
|
|
|
}else{ |
|
|
|
return 'p'; |
|
|
|
} |
|
|
|
|
|
|
|
Figur = getUserInput(); |
|
|
|
} |
|
|
|
|
|
|
|
if((player == PLAYER_WHITE && (Figur == 'Q' || Figur == 'R' || Figur == 'B' || Figur == 'N')) || |
|
|
|
(player == PLAYER_BLACK && (Figur == 'q' || Figur == 'r' || Figur == 'b' || Figur == 'n'))){ |
|
|
|
return Figur; |
|
|
|
}else{ |
|
|
|
return 'W'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void bauer_umwandeln(char** Brett, int startX, int startY, int endX, int endY, Player player){ |
|
|
|