#ifndef SEARCH_H #define SEARCH_H #include "ints.h" #include "bitboard.h" typedef u8 square_t; typedef struct { square_t from; square_t to; } move_t; typedef struct { move_t* moves; u32 length; u32 capacity; } moves_t; moves_t moves_init(); moves_t moves_init_wcapacity(u32 capacity); moves_t moves_empty(); void add_move(moves_t* moves, square_t from, square_t to); void get_pawn_moves(moves_t* moves, position_t position); #endif // !SEARCH_H