add memory pool for positions

This commit is contained in:
2021-11-12 18:33:39 +01:00
parent 4442901b58
commit bd7d9f8551
10 changed files with 41 additions and 18 deletions

View File

@@ -47,7 +47,8 @@ typedef struct move_s {
piece_t taken; /* removed piece */
piece_t promotion; /* promoted piece */
move_flags_t flags;
struct list_head list;
struct list_head list; /* next move */
struct pos_t *pos; /* resulting position */
} move_t;
pool_t *moves_pool_init();