|
@ -262,8 +262,8 @@ bool istzugerlaubt_Koenig(char** Brett, int startX, int startY, int endX, int en |
|
|
void bewegeKoenig(char** Brett, int startX, int startY, int endX, int endY, Player player, Spielstatus* status) { |
|
|
void bewegeKoenig(char** Brett, int startX, int startY, int endX, int endY, Player player, Spielstatus* status) { |
|
|
if (istzugerlaubt_Koenig(Brett, startX, startY, endX, endY, player)) { |
|
|
if (istzugerlaubt_Koenig(Brett, startX, startY, endX, endY, player)) { |
|
|
|
|
|
|
|
|
char Koenig = player == PLAYER_WHITE ? 'K' : 'k'; |
|
|
|
|
|
Brett[endY][endX] = Koenig; |
|
|
|
|
|
|
|
|
char koenig = player == PLAYER_WHITE ? 'K' : 'k'; |
|
|
|
|
|
Brett[endY][endX] = koenig; |
|
|
Brett[startY][startX] = ' '; |
|
|
Brett[startY][startX] = ' '; |
|
|
|
|
|
|
|
|
if (player == PLAYER_WHITE) { |
|
|
if (player == PLAYER_WHITE) { |
|
|