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.

47 lines
904 B

  1. #ifdef TEST
  2. #include "unity.h"
  3. #include "Schachbrett.h"
  4. #include "Spieler.h"
  5. #include "Bauer.h"
  6. #include "Turm.h"
  7. #include "Laeufer.h"
  8. #include "Dame.h"
  9. #include "Springer.h"
  10. #include "Koenig.h"
  11. #include "Moving.h"
  12. #include "Historie.h"
  13. #include "SimpleKI.h"
  14. #include "En_Passaut.h"
  15. #include "Bauernumwandlung.h"
  16. #include <stdlib.h>
  17. /*
  18. void test_KI_Bewegung (void) {
  19. char** brett = Schachbrett_erstellen();
  20. char** ver_brett = Schachbrett_erstellen();
  21. int startX = 1;
  22. int startY = 1;
  23. int endX = 2;
  24. int endY = 1;
  25. Player player = PLAYER_BLACK;
  26. int** Historie = erstellen_historie();
  27. int anzahl_Zuege = 0;
  28. TEST_ASSERT_NOT_NULL(brett);
  29. kuenstliche_intelligenz(brett, player,anzahl_Zuege, Historie);
  30. TEST_ASSERT_FALSE(brett == ver_brett);
  31. for (int i = 0; i < 8; i++) {
  32. free(brett[i]);
  33. }
  34. free(brett);
  35. }
  36. */
  37. #endif // TEST