Open AlgoMenosVulgar opened 1 year ago
From what I see, this happens because the FEN doesn't have the side to move. So if you for example paste it in board editors like Lichess or Scid, they will default to White to move, which is impossible because black is in check.
It would happen every time the position ends with black in check, like:
[Result "1-0"]
[Variant "Standard"]
[ECO "C62"]
[Opening "Ruy Lopez: Steinitz Defense"]
1. e4 e5 2. Nf3 Nc6 3. Bb5 d6 4. Bxc6+ 1-0
Is there a particular reason why the FEN isn't complete? Since this info is in the color column, a workaround would be for users to adjust it using that, but it would be nice for the FEN to have all the fields (side, castling rights, en passant, etc.).
From what I see, this happens because the FEN doesn't have the side to move. So if you for example paste it in board editors like Lichess or Scid, they will default to White to move, which is impossible because black is in check.
It would happen every time the position ends with black in check, like:
[Result "1-0"] [Variant "Standard"] [ECO "C62"] [Opening "Ruy Lopez: Steinitz Defense"] 1. e4 e5 2. Nf3 Nc6 3. Bb5 d6 4. Bxc6+ 1-0
Is there a particular reason why the FEN isn't complete? Since this info is in the color column, a workaround would be for users to adjust it using that, but it would be nice for the FEN to have all the fields (side, castling rights, en passant, etc.).
You are correct about that missing letter at the end specifying whose side is to play.
Hi zq99, really happy to have found your work. I am having some issues with the following: Imagine this link https://www.chess.com/game/live/76681276597?username=hikaru
which has the following PGN:
after I get the two cvs with the details and moves I get the column "fen" and is like this:
Now, this last one is impossible to analyze on stockfish python. It also fails if I put the fen into lichess.org directly.
The correct FEN that you can obtain from the original link says it should be: 8/6kP/2n2P2/2p3p1/2P1K3/pP6/P7/1B6 b - - 0 54
So, how to correct this? I can not do this manually, I am planning on analyzing 30k+ games and of course 100k+ FENs