re-organize defines / few bug fix

This commit is contained in:
2024-02-10 09:16:59 +01:00
parent 95cc25a2c2
commit 4f25c1416d
12 changed files with 375 additions and 348 deletions

View File

@@ -8,15 +8,23 @@ int main(int ac, char**av)
{
pos_t *pos;
const char *fen;
char revfen[128];
int comp;
debug_init(5, stderr, true);
pos_pool_init();
//pos_pool_init();
pos = pos_new();
if (ac == 1) {
fen = startfen;
startpos(pos);
} else {
fen2pos(pos, av[1]);
fen = av[1];
fen2pos(pos, fen);
}
pos_print(pos);
printf("fen=[%s]\n", pos2fen(pos, NULL));
pos2fen(pos, revfen);
//printf("reverse fen=[%s]\n", pos2fen(pos, NULL));
comp = strcmp(fen, revfen);
printf("compare=%d - %s\n", comp, comp? "NOK": "OK");
}