]> git.sesse.net Git - stockfish/commitdiff
Rewrite do_castle_move()
authorMarco Costalba <mcostalba@gmail.com>
Sun, 27 Jan 2013 17:48:27 +0000 (18:48 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 28 Jan 2013 12:40:47 +0000 (13:40 +0100)
And handle the castle directly in do/undo_move().
This allow to greatly simplify the code.

Here the beast is the nasty Chess960 that is
really tricky to get it right because could be
that 'from' and 'to' squares are the same or
that king's 'to' square is rook's 'from' square.

Anyhow should work: verified on all Chess960
starting positions.

No functional and no speed change also in Chess960.


No differences found