lichess.org
Donate

Bug Report: Stockfish castles by moving king 3 squares after king moved

To reproduce reliably, start with Nf3 as white, then Bc4, then Ng5. Once this f7 pawn is thoroughly targeted, stockfish will resort to cheating...
I think that since you ticked the boxes about castling, stockfish thinks black can castle either side independently from where the black king is. Try generating the same position without black's castling powers, or without one side, and see if it changes anything. I think it will.

Here, (@) Deadban was right, Stockfish castles because the checkbox of black casting is ticked.
When I cancel it,

That's it! So Stockfish is just a dummy playing according to your choice.
In chess 960 the king never starts on a1 or h1. So the white king must have moved already.

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