fix wrong recursive call in perft_test()

This commit is contained in:
2024-05-16 07:27:59 +02:00
parent d1cb1f3c2c
commit a012af30fc

View File

@@ -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);