|
@ -40,6 +40,7 @@ void test_Laeufer_Weg_frei(void){ |
|
|
Player player = PLAYER_WHITE; |
|
|
Player player = PLAYER_WHITE; |
|
|
brett[2][2] = 'P'; |
|
|
brett[2][2] = 'P'; |
|
|
assert(istzugerlaubt_Laeufer(brett, 1, 1, 3, 3, player)==false); |
|
|
assert(istzugerlaubt_Laeufer(brett, 1, 1, 3, 3, player)==false); |
|
|
|
|
|
assert(istzugerlaubt_Laeufer(brett, 3, 3, 6, 6, player)==true); |
|
|
for (int i = 0; i < 8; i++) { |
|
|
for (int i = 0; i < 8; i++) { |
|
|
free(brett[i]); |
|
|
free(brett[i]); |
|
|
} |
|
|
} |
|
|