is_legal: fix check+pinned and knight check; perft-test + perft2()

This commit is contained in:
2024-03-26 17:37:18 +01:00
parent 7637bdad10
commit 08ba989170
7 changed files with 457 additions and 87 deletions

View File

@@ -238,7 +238,10 @@ int main(int __unused ac, __unused char**av)
/* print movelists */
send_stockfish_fen(outfd, fishpos, &fishmoves, fen);
pos_gen_pseudomoves(pos, &pseudo);
//moves_print(&pseudo, 0);
pos_all_legal(pos, &pseudo, &legal);
//moves_print(&legal, 0);
//printf("Fu ");
//moves_print(fishpos, 0);
//fflush(stdout);