add memstats / clear lists when new fen position

This commit is contained in:
2021-11-14 16:03:36 +01:00
parent 6dac938c76
commit f0e1836f2f
10 changed files with 181 additions and 64 deletions

View File

@@ -53,6 +53,7 @@ pos_t *fen2pos(pos_t *pos, char *fen)
board_t *board = pos->board;
# define SKIP_BLANK(p) for(;*(p) == ' '; (p)++)
pos_clear(pos);
/* 1) get piece placement information
*/
for (rank = 7, file = 0; *p && *p != ' '; ++p) {