TheBlackPlague / StockNemo

A C# Chess Engine Finding Good Moves.
GNU Lesser General Public License v3.0
62 stars 7 forks source link

Illegal En Passant when Under Check. #89

Closed TheBlackPlague closed 1 year ago

TheBlackPlague commented 1 year ago

Consider the following position: 2r5/1K6/P1B5/8/4p1pp/8/3R1PkP/8 w - - 0 1. After the move f4, putting Black under a discovered check, StockNemo 5.7.0.0 says the best move is exf3. This is, however, illegal since Black is under check even after the move, and White captures Black's king in the following move.

image