diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2026-05-25 10:48:41 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2026-05-25 10:48:41 +0530 |
| commit | 537b22d8731af4d8d6d20ce2eade5c0c4a5f2253 (patch) | |
| tree | 10e4a5683a7c0f692ed2b3ee537df2256e73df94 /src/search/king_moves.c | |
| parent | b0a585e21362137c90a6484de44889d2117d9c7a (diff) | |
coming up with a testing setup
Diffstat (limited to 'src/search/king_moves.c')
| -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; +} |
