chessfriend/board
Eryn Wells f90ea2d1be [board] Add a test for capturing en passant; fix the bugs
I wrote a test for capturing en passant that revealed some bugs. Cool!

Implement the missing part of move validation that checks for an en passant move.
Implement PositionBuilder::to_move() to set player_to_move.

The most difficult part of this fix was finding the logic error in
Move::is_en_passant(). Instead of checking for non-zero, check for equality against
the en passant flag value. Checking for non-zero was causing this method to return
true in the double push case.
2024-01-21 11:21:37 -08:00
..
src [board] Add a test for capturing en passant; fix the bugs 2024-01-21 11:21:37 -08:00
Cargo.lock [board] Move bitboard lib to "board" 2023-12-20 11:45:55 -08:00
Cargo.toml [board] Move bitboard lib to "board" 2023-12-20 11:45:55 -08:00