Fix bok retrieval mov moves that could be KxR castling v4.9.x
authorH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 26 Oct 2025 18:58:08 +0000 (19:58 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 26 Oct 2025 18:58:08 +0000 (19:58 +0100)
commit67930174b43e8e36217cd6e7b67433c06ff22a94
tree52cf173668a299024cbe1446db75f600d7cdec80
parent28f4d7de9478caa0de572953072441ac4b33c0d1
Fix bok retrieval mov moves that could be KxR castling

The probing code for the Polyglot book corrected moves like e1h1,
which could be a castling in the KxR notation that UCI uses for Chess960,
to compliant CECP notation (e1g1). But it also did that for Rook or Queen
moves that were not castlings at all. Now we test for a King on the
from-square before doing this.
book.c