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

@@ -37,7 +37,7 @@ int main(int __unused ac, __unused char**av)
bitboard_init();
hyperbola_init();
while ((fen = next_fen(MOVEGEN | MOVEDO))) {
while ((fen = next_fen(MOVEDO))) {
test_line = cur_line();
if (!(pos = fen2pos(NULL, fen))) {
printf("wrong fen %d: [%s]\n", i, fen);