convert piece_t, square_t etc. to u8 (no more typed enum. See C23 ?).

This commit is contained in:
2024-07-03 08:49:54 +02:00
parent 902c224aa9
commit 91abc3e26d
9 changed files with 58 additions and 30 deletions

View File

@@ -43,14 +43,20 @@ typedef struct __pos_s {
* This allows a memcpy on this data (to save/restore position state).
*/
struct_group_tagged(state_s, state,
/* 64 bits */
struct state_s *prev;
hkey_t key;
/* 16 bits */
u16 plycount; /* plies so far, start from 1 */
move_t move;
/* 8 bits */
square_t en_passant;
castle_rights_t castle;
int clock_50;
int plycount; /* plies so far, start from 1 */
piece_t captured; /* only used in move_undo */
move_t move;
struct state_s *prev;
u8 clock_50;
);
eval_t eval;
bitboard_t checkers; /* opponent checkers */