|
|
@ -35,10 +35,19 @@ void test_Laeufer_input_imFeld(void){ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void test_Laeufer_Weg_frei(void){ |
|
|
|
char** brett = Schachbrett_erstellen(); |
|
|
|
Player player = PLAYER_WHITE; |
|
|
|
brett[2][2] = 'P'; |
|
|
|
assert(istzugerlaubt_Laeufer(brett, 1, 1, 3, 3, player)==false); |
|
|
|
for (int i = 0; i < 8; i++) { |
|
|
|
free(brett[i]); |
|
|
|
} |
|
|
|
free(brett); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// Tests Läufer |
|
|
|
|
|
|
|
// Ob eine Spielfigur die Bewegung blockiert |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|