Closed ThomasR closed 7 years ago
Not sure how this fixes the issue. I haven't really understood the code, but something feels fishy.
Again, the issue was
I updated our stage environment: https://stage.lichess.org
Would you like to try and reproduce the bug there? Thanks.
Looks like the bug does not occur any more.
I'm still puzzled by how black was able to castle in the game. My first guess would have been pre-move since the logic there is different (and correct), but the move time was 60 seconds, so it must have been a normal move.
Any ideas?
Couple options:
Maybe Black typed O-O into the move field below the board?
The bug only happens with a non-default user preference about castling. Last one on https://en.lichess.org/account/preferences/game-behavior
In this game, I was not able to castle king-side, even though it was legally allowed.
Note how the analysis board also does not allow O-O at any time. However, O-O-O works perfectly fine, as can be seen by the markers around the rook.
Black played 14. … O-O in the actual game, but the analysis board won't let me do this move.
When using the FEN analysis, the issue also occurs, but only when the Castle by moving by two squares preference is set, which should have no effect on Chess960.