Skip to content

Commit

Permalink
Latest
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-moreton committed Apr 3, 2023
1 parent cce8d86 commit 488f216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moves.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ pub fn any_squares_in_bitboard_attacked(position: &Position, attacked: Mover, mu
}

#[inline(always)]
pub fn is_square_attacked_old(position: &Position, attacked_square: Square, attacked: Mover) -> bool {
pub fn is_square_attacked(position: &Position, attacked_square: Square, attacked: Mover) -> bool {
let enemy = position.pieces[opponent!(attacked) as usize];

enemy.pawn_bitboard & PAWN_MOVES_CAPTURE[attacked as usize][attacked_square as usize] != 0
Expand Down

0 comments on commit 488f216

Please sign in to comment.