refactor position: now contains board (not board *)

This commit is contained in:
2021-11-12 20:22:20 +01:00
parent bd7d9f8551
commit 451afea6b5
11 changed files with 54 additions and 17 deletions

View File

@@ -27,7 +27,7 @@ typedef struct pos_s {
u16 curmove;
u16 mobility[2];
eval_t eval;
board_t *board;
board_t board[BOARDSIZE];
square_t en_passant;
square_t king[2];
@@ -46,5 +46,6 @@ pos_t *pos_startpos(pos_t *pos);
pos_t *pos_create();
pool_t *pos_pool_init();
pos_t *pos_get();
pos_t *pos_dup(pos_t *pos);
#endif