|
> Black to move, and in the final position, the pawn at h4 can be captured en-passant. > They're all legal. But then, looking at the final position[1], black is in check by the knight on b2. If white's pawn can be captured en passant, this implies the knight was not the most recent move, so the black king was in check on the previous turn as well. It's obviously not legal to remain in check. What am I missing? [1] https://raw.githubusercontent.com/tromp/ChessPositionRanking... |
I missed something, and clearly misclassified this position, leaving only 51 legal in the 1k set (and only 537 in the 10k set).
Oops. It's embarrassing since I did pay attention to the en-passant positions in the 919-93 positions not from the smaller 1k sample, such as this one: https://github.com/tromp/ChessPositionRanking/issues/916
I'll have to make some changes to my README. Meanwhile, congratulations on spotting the error. And I'll be sure to mention you in the eventual publication.
This underscores the need to back up my classification with proof games...