Castle with nearest rather than corner piece
authorH.G.Muller <hgm@hgm-xboard.(none)>
Thu, 5 Feb 2015 19:09:53 +0000 (20:09 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Thu, 7 May 2015 18:53:32 +0000 (20:53 +0200)
commitced64ba7e2ff09bc951a570bf9d27d4db83584b0
treeb5a31e3ae945f5698f9fbb037161c51201e197e3
parent6b0c328eee9be28c1d917ec14b06440582564a65
Castle with nearest rather than corner piece

An oversized sideway King step is recognized as castling, but instead
of using the piece closest to the board edge on that rank (ignoring dark
squares) we now use the piece that the King is looking at in that direction.
This fixes castling in Omega Chess.
backend.c