From a012af30fc186d2bc11a8d6b95d6492c66141a1f Mon Sep 17 00:00:00 2001 From: Bruno Raoult Date: Thu, 16 May 2024 07:27:59 +0200 Subject: [PATCH] fix wrong recursive call in perft_test() --- src/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index 1fbef4b..06f889b 100644 --- a/src/search.c +++ b/src/search.c @@ -105,7 +105,7 @@ u64 perft_test(pos_t *pos, int depth, int ply, bool output) nodes++; } else { move_do2(pos, *move, &state); - subnodes = perft(pos, depth - 1, ply + 1, output); + subnodes = perft_test(pos, depth - 1, ply + 1, output); if (output && ply == 1) { char movestr[8]; printf("%s: %d\n", move_str(movestr, *move, 0), subnodes);