lichess.org
Donate

Stockfisch bug

I was studying a professional game with stockfish until when I thought my position was winning he illegally castled hahaha
It's not an illegal castle because the position the game was started from indicates Black has castling rights

4q1kr/p6p/1prQPppB/4n3/4P3/2P5/PP2B2P/R5K1 w Qk - 0 1

The part of the position string that says "Qk" means that White has queenside castling rights and Black has kingside castling rights. If you don't want Black to be able to castle, you should set up the position with castling rights turned off.
This does appear you found a bug. Lichess should not have accepted an invalid FEN for standard Chess play. This FEN is only valid for specific chess variants.
Stockfish played legally.
Lichess doesn't have a separate variant for Chess960 From Position, since the rules are the same as normal chess.
I don't know what to say, This is pretty awkward for me

This topic has been archived and can no longer be replied to.