|
|
@ -24,10 +24,12 @@ void test_Turm_Y_Bewegung(void) { |
|
|
|
TEST_ASSERT_NOT_NULL(brett); |
|
|
|
|
|
|
|
brett[1][0] = ' '; |
|
|
|
brett[2][0] = ' '; |
|
|
|
brett[3][0] = ' '; |
|
|
|
print_Schachfeld(brett); |
|
|
|
|
|
|
|
|
|
|
|
TEST_ASSERT_FALSE(istzugerlaubt_Turm( brett, startX, startY, endX, endY, player)); |
|
|
|
TEST_ASSERT_TRUE(istzugerlaubt_Turm( brett, startX, startY, endX, endY, player)); |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < 8; i++) { |
|
|
@ -52,7 +54,7 @@ void test_Turm_X_Bewegung(void) { |
|
|
|
print_Schachfeld(brett); |
|
|
|
|
|
|
|
|
|
|
|
TEST_ASSERT_FALSE(istzugerlaubt_Turm( brett, startX, startY, endX, endY, player)); |
|
|
|
TEST_ASSERT_TRUE(istzugerlaubt_Turm( brett, startX, startY, endX, endY, player)); |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < 8; i++) { |
|
|
|