From 7e021a821b49306eaa8b0688e4b91d2db25d4878 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Tue, 26 May 2026 14:07:15 +0530 Subject: rook moves --- src/search/king_moves.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/search/king_moves.c') 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 - -#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 +#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 -- cgit v1.2.3