|
|
@ -4,10 +4,18 @@ |
|
|
|
#include "spieler.h" |
|
|
|
#include "Moving.h" |
|
|
|
#include "Bauer.h" |
|
|
|
#include "Historie.h" |
|
|
|
|
|
|
|
bool ist_En_Passaut_erlaubt_Bauer(char** Brett, int startX, int startY, int endX, int endY, Player player) { |
|
|
|
bool ist_En_Passaut_erlaubt_Bauer(char** Brett, int startX, int startY, int endX, int endY, Player player |
|
|
|
,int anzahl_Zuege, int** Historie) { |
|
|
|
|
|
|
|
char* letzteFigur = Brett[Historie[anzahl_Zuege-1][3]][Historie[anzahl_Zuege-1][2]]; |
|
|
|
|
|
|
|
if(letzteFigur == 'p'){ |
|
|
|
return true; |
|
|
|
}else{ |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|