]> git.sesse.net Git - stockfish/commit
Clarify SAN disambiguation in case of a pinned piece
authorMarco Costalba <mcostalba@gmail.com>
Sat, 12 Jan 2013 12:19:06 +0000 (13:19 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 12 Jan 2013 12:21:14 +0000 (13:21 +0100)
commit3a836dab59597a9f006636a362839557fe9e896b
treef074b47a8a0a0f2aa35485d212427c2fd9c7e34d
parente1191b35e85cbf0d488d747ac26cdf13e1fa0f9a
Clarify SAN disambiguation in case of a pinned piece

In SAN notation when two pieces of the same type can
move to a given destination square, a disambiguation
additional info (like starting file) shall be added
to the SAN move.

If one of the two pieces is pinned, the corresponding
move _could_ be illegal and in this case disambiguation
is not needed. But to be pinned alone it is not enough
to deduce that the move is illegal, for instance in this
position:

R3rk2/2r6/8/8/8/8/8/K7 b - - 0 1

The move Rc8 is ambiguous although the rook in e8 is pinned
and the correct SAN notation should be Rcc8.

No functional change.
src/notation.cpp