movegen: add some generic fonctions

This commit is contained in:
2024-04-11 10:03:35 +02:00
parent 03da11cc9c
commit ab31274d17
2 changed files with 76 additions and 40 deletions

View File

@@ -101,7 +101,8 @@ static inline move_t move_make(square_t from, square_t to)
static inline move_t move_make_flags(square_t from, square_t to, move_flags_t flags)
{
return move_set_flags(move_make(from, to), flags);
return (to << M_OFF_TO) | from | flags;
//move_set_flags(move_make(from, to), flags);
}
static inline move_t move_make_capture(square_t from, square_t to)