From 06f02873bf6e819ae343effefd3354cd011e7f07 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Wed, 25 Feb 2026 18:44:23 +0530 Subject: board.html + moveable pieces & bitboard updates --- src/search/pawn_moves.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/search/pawn_moves.c') 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; -- cgit v1.2.3