summaryrefslogtreecommitdiff
path: root/src/search/king_moves.c
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2026-05-26 14:07:15 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2026-05-26 14:07:15 +0530
commit7e021a821b49306eaa8b0688e4b91d2db25d4878 (patch)
tree83f2848245236f079fae5a6f790f96101c6f769c /src/search/king_moves.c
parentc8d8d1ddf9ff8d7900d41d885cdbf177f40f0cd1 (diff)
rook moves
Diffstat (limited to 'src/search/king_moves.c')
-rw-r--r--src/search/king_moves.c12
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