Skip to content

Commit 39ad7fd

Browse files
committed
generate pawn moves p3
1 parent 9e55243 commit 39ad7fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/board.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ impl Board {
234234
!occupancy.is_set(index)
235235
}
236236

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

0 commit comments

Comments
 (0)