fixed en passant offset
This commit is contained in:
parent
76310400e8
commit
e9c96e83da
@ -183,7 +183,8 @@ Board Board::make_move(Move move) const {
|
|||||||
|
|
||||||
// -- Handle en passant target being eaten
|
// -- Handle en passant target being eaten
|
||||||
if (move.en_passant)
|
if (move.en_passant)
|
||||||
ret.squares[move.target_square - 8] = Piece::None;
|
ret.squares[move.target_square + (white_to_play ? -8 : 8)] =
|
||||||
|
Piece::None;
|
||||||
|
|
||||||
// -- Handle promotion
|
// -- Handle promotion
|
||||||
if (move.promoting_to != Piece::None)
|
if (move.promoting_to != Piece::None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user