bb migration: add util, update fen/fen-test + partial pos + piece

This commit is contained in:
2024-02-07 22:08:24 +01:00
parent c57e0463cd
commit 1929d4bb1f
15 changed files with 860 additions and 602 deletions

View File

@@ -1,20 +1,22 @@
#include "debug.h"
#include "pool.h"
#include "../src/position.h"
#include "../src/fen.h"
int main(int ac, char**av)
{
pos_t *pos;
position *pos;
debug_init(5, stderr, true);
piece_pool_init();
pos_pool_init();
pos = pos_get();
pos = pos_new();
if (ac == 1) {
pos_startpos(pos);
startpos(pos);
} else {
fen2pos(pos, av[1]);
}
pos_print(pos);
printf("fen=[%s]\n", pos2fen(pos, NULL));
}