movegen-test: add fen test array

This commit is contained in:
2024-02-29 09:19:24 +01:00
parent a8e3ec70f8
commit 7859228f89
3 changed files with 306 additions and 32 deletions

View File

@@ -26,8 +26,11 @@ int main(int ac, char**av)
fen2pos(pos, fen);
}
pos_print(pos);
pos2fen(pos, revfen);
//printf("reverse fen=[%s]\n", pos2fen(pos, NULL));
comp = strcmp(fen, revfen);
printf("compare=%d - %s\n", comp, comp? "NOK": "OK");
pos_print_board_raw(pos, 0);
pos_print_board_raw(pos, 1);
}