Skip to content

Commit

Permalink
generate pawn moves p3
Browse files Browse the repository at this point in the history
  • Loading branch information
Kacperacy committed Jul 10, 2024
1 parent 9e55243 commit 39ad7fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/board.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ impl Board {
!occupancy.is_set(index)
}

/// Chceck if enemy piece is on square
fn is_square_enemy(&self, color: Color, position: usize) -> bool {
match color {
Color::White => self.black_occupancy.is_set(position),
Expand Down

0 comments on commit 39ad7fd

Please sign in to comment.