From 537b22d8731af4d8d6d20ce2eade5c0c4a5f2253 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Mon, 25 May 2026 10:48:41 +0530 Subject: coming up with a testing setup --- src/search/king_moves.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/search/king_moves.c') 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 + +#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; +} -- cgit v1.2.3