diff options
Diffstat (limited to 'src/search')
| -rw-r--r-- | src/search/bishop_moves.c | 7 | ||||
| -rw-r--r-- | src/search/moves.c | 4 | ||||
| -rw-r--r-- | src/search/queen_moves.c | 14 | ||||
| -rw-r--r-- | src/search/rook_moves.c | 7 |
4 files changed, 28 insertions, 4 deletions
diff --git a/src/search/bishop_moves.c b/src/search/bishop_moves.c index 29fe3a6..207535e 100644 --- a/src/search/bishop_moves.c +++ b/src/search/bishop_moves.c @@ -68,5 +68,10 @@ void get_bishop_moves(moves_t* moves, position_t position) { friendly_bishops = position.bitboards[BLACK_BISHOP]; } - __forloop_bishop_moves_gen(moves, friendly_bishops, friendly_pieces, enemy_pieces); + __forloop_bishop_moves_gen( + moves, + friendly_bishops, + friendly_pieces, + enemy_pieces + ); } diff --git a/src/search/moves.c b/src/search/moves.c index 7089886..c0cdb4e 100644 --- a/src/search/moves.c +++ b/src/search/moves.c @@ -2,6 +2,10 @@ #include <assert.h> #include <stdlib.h> +void position_make_move(position_t* position, move_t* move) { + +} + moves_t moves_init() { return moves_init_wcapacity(16); } diff --git a/src/search/queen_moves.c b/src/search/queen_moves.c index f1e773a..973c5bc 100644 --- a/src/search/queen_moves.c +++ b/src/search/queen_moves.c @@ -16,6 +16,16 @@ void get_queen_moves(moves_t* moves, position_t position) { friendly_queens = position.bitboards[BLACK_QUEEN]; } - __forloop_rook_moves_gen(moves, friendly_queens, friendly_pieces, enemy_pieces); - __forloop_bishop_moves_gen(moves, friendly_queens, friendly_pieces, enemy_pieces); + __forloop_rook_moves_gen( + moves, + friendly_queens, + friendly_pieces, + enemy_pieces + ); + __forloop_bishop_moves_gen( + moves, + friendly_queens, + friendly_pieces, + enemy_pieces + ); } diff --git a/src/search/rook_moves.c b/src/search/rook_moves.c index 778c6a1..3e25526 100644 --- a/src/search/rook_moves.c +++ b/src/search/rook_moves.c @@ -68,5 +68,10 @@ void get_rook_moves(moves_t* moves, position_t position) { friendly_rooks = position.bitboards[BLACK_ROOK]; } - __forloop_rook_moves_gen(moves, friendly_rooks, friendly_pieces, enemy_pieces); + __forloop_rook_moves_gen( + moves, + friendly_rooks, + friendly_pieces, + enemy_pieces + ); } |
