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