summaryrefslogtreecommitdiff
path: root/src/search
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2026-02-25 18:44:23 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2026-02-25 18:44:23 +0530
commit06f02873bf6e819ae343effefd3354cd011e7f07 (patch)
treef09f70659edc44b24ebef61a8628b1166c015aa4 /src/search
parent63fa6656749d1cdb6a54a001950048a9660f0d73 (diff)
board.html + moveable pieces & bitboard updates
Diffstat (limited to 'src/search')
-rw-r--r--src/search/pawn_moves.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search/pawn_moves.c b/src/search/pawn_moves.c
index 58eac83..e169c07 100644
--- a/src/search/pawn_moves.c
+++ b/src/search/pawn_moves.c
@@ -12,7 +12,7 @@ void get_white_pawn_moves(moves_t* moves, position_t position) {
bitboard_t friendly_pawns = position.bitboards[WHITE_PAWN];
bitboard_t y = friendly_pieces | enemy_bitboard;
bitboard_t x = ~((friendly_pawns << 8) & y) & (friendly_pawns << 8);
- bitboard_t first_move_x = x | BITMASK_RANK_C;
+ bitboard_t first_move_x = x & BITMASK_RANK_C;
first_move_x |= (first_move_x << 8) & (~y);
x |= first_move_x;