From afecbeb955d3538eb16a5cf49e1c737f39a59aeb Mon Sep 17 00:00:00 2001 From: Bruno Raoult Date: Tue, 2 Apr 2024 20:40:44 +0200 Subject: [PATCH] movegen-test: add set_checkers_pinners_blockers call --- test/movegen-test.c | 2 ++ test/perft-test.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/movegen-test.c b/test/movegen-test.c index 9cfbfc6..93fa5eb 100644 --- a/test/movegen-test.c +++ b/test/movegen-test.c @@ -237,6 +237,8 @@ int main(int __unused ac, __unused char**av) } /* print movelists */ send_stockfish_fen(outfd, fishpos, &fishmoves, fen); + + pos_set_checkers_pinners_blockers(pos); pos_gen_pseudomoves(pos, &pseudo); //moves_print(&pseudo, 0); pos_all_legal(pos, &pseudo, &legal); diff --git a/test/perft-test.c b/test/perft-test.c index fc0c92b..929ed0c 100644 --- a/test/perft-test.c +++ b/test/perft-test.c @@ -307,12 +307,12 @@ int main(int __unused ac, __unused char**av) ms3_total += ms3; if (sf_count == my_count) { - printf("pt3 OK : line=%03d perft=%lu %'ldms lps=%'lu \"%s\"\n", + printf("pt3 OK : line=%3d perft=%lu %'ldms lps=%'lu \"%s\"\n", test_line, my_count, ms3, ms3? my_count*1000l/ms3: 0, fen); } else { - printf("pt3 ERR: line=%03d sf=%lu me=%lu \"%s\"\n", + printf("pt3 ERR: line=%3d sf=%lu me=%lu \"%s\"\n", test_line, sf_count, my_count, fen); } }