Make en_passant_square an Option<u8>

This commit is contained in:
2024-06-09 15:54:41 +03:00
parent 880df665d5
commit 1f7cbbe577
4 changed files with 33 additions and 28 deletions

View File

@@ -121,7 +121,7 @@ impl Board {
pieces,
all_occupancies,
enemy_occupancies,
self.state,
self.state.get_en_passant_target_square(),
color,
),
Kind::Knight => knight_pseudo_moves(pieces, own_occupancies),