]> git.sesse.net Git - stockfish/commit
Remove dubious castle detector
authorMarco Costalba <mcostalba@gmail.com>
Fri, 31 Dec 2010 13:32:25 +0000 (14:32 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Fri, 31 Dec 2010 13:32:25 +0000 (14:32 +0100)
commit9394db765fba22eae790fe4dc79dfcd0f6a43a6d
treef31ef08c77acc8eda7d37c2e0c392f600d96ce59
parent4d6258bb32d90b1efc42e28885beb40f87b55e0d
Remove dubious castle detector

It was introduced by patch 66d16592 of 22/3/2009 merging
from Glarurung iPhone.

Tord says:
That change is only found in the Glaurung iPhone app, and not
in the latest Glaurung UCI source code. I don't remember why
this was added (and the iPhone app, unlike the UCI engine,
was never version controlled), but it was almost certainly
because it was somehow needed in the communication between
the engine and the iPhone GUI, and that it was never meant to be
included in the UCI engine. My guess is that it has something to
do with castling moves being entered as e1-g1 in the GUI, but
represented as e1-h1 in the chess engine.

Removing it in Stockfish should be completely safe, and won't harm
the iPhone version. Initially the iPhone GUI called functions in the
chess engine for checking for legality of moves, writing the move
list in SAN format, and various other tasks, but this is no longer
the case in the current version.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/san.cpp