I have quickly created a silly example, I don't know whether it is kind of real ... consider this position:mcostalba wrote:I don't think I have understood this. Could you pelase do an example of a test case where we could have an issue ?Sven Schüle wrote: Therefore not ignoring FEN ep squares even if a pseudo-legal ep capture would be illegal has "functional impact"
[d]
Black moves 1...f5 which creates the "pseudo" ep square f6:
[d]
Now let's assume you get this position as FEN, and you search (or play on the board) 2.Rb1+ Ka8 3.Ra1+ reaching the following position:
[d]
From here, 3...Kb8 repeats while 3...Kb7 avoids repetition. But since the position after 1...f5 has f6 as ep square but now you have no ep square any longer, you regard both positions as different, no matter how you do the repetition check. While I am pretty sure that no program will really miss to find 3...Kb7 as best move, 3...Kb8 will be searched, too, since the repetition is missed.
I know the example is very artificial but you wanted me to demonstrate what I mean.
I would not call it an issue, just a very minor drawback that almost all engines probably have.
Btw it is not restricted to conversion of FENs only, you have this "problem" each time you detect a potential ep square after making a double pawn step.
Sven