diff options
Diffstat (limited to 'src/search/king_moves.c')
| -rw-r--r-- | src/search/king_moves.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/search/king_moves.c b/src/search/king_moves.c index 7655fbb..3f245cc 100644 --- a/src/search/king_moves.c +++ b/src/search/king_moves.c @@ -1,10 +1,4 @@ #include "../search.h" -#include <stdbool.h> - -#ifdef TEST_MOD -#include "../bitboard.c" -#include "./moves.c" -#endif void get_king_moves(moves_t* moves, position_t position) { assert_valid_position(position); @@ -42,6 +36,11 @@ void get_king_moves(moves_t* moves, position_t position) { } } +#ifdef TEST_MOD +#include <stdbool.h> +#include "../bitboard.c" +#include "./moves.c" + bool test_empty_board() { int i = 0; while (i++ < 1000000000); @@ -51,3 +50,4 @@ bool test_empty_board() { bool test_friendly_pieces() { return false; } +#endif |
