You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
730 B

#ifdef TEST
#include "unity.h"
#include "Schachbrett.h"
#include "Spieler.h"
#include "Bauer.h"
#include "Turm.h"
#include "Laeufer.h"
#include "Dame.h"
#include "Springer.h"
#include "Koenig.h"
#include "Moving.h"
#include "SimpleKI.h"
#include <stdlib.h>
void test_KI_Bewegung (void) {
char** brett = Schachbrett_erstellen();
char** ver_brett = Schachbrett_erstellen();
int startX = 1;
int startY = 1;
int endX = 2;
int endY = 1;
Player player = PLAYER_BLACK;
TEST_ASSERT_NOT_NULL(brett);
kuenstliche_intelligenz(brett, player);
TEST_ASSERT_FALSE(brett == ver_brett);
for (int i = 0; i < 8; i++) {
free(brett[i]);
}
free(brett);
}
#endif // TEST