diff options
Diffstat (limited to 'src/search')
| -rw-r--r-- | src/search/king_moves.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/search/king_moves.c b/src/search/king_moves.c index 631b7f0..b1fc55f 100644 --- a/src/search/king_moves.c +++ b/src/search/king_moves.c @@ -1,4 +1,10 @@ #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); @@ -35,3 +41,13 @@ void get_king_moves(moves_t* moves, position_t position) { add_move(moves, king_square, to); } } + +bool test_empty_board() { + int i = 0; + while (i++ < 10000000); + return true; +} + +bool test_friendly_pieces() { + return false; +} |
