]> git.sesse.net Git - stockfish/commit
Fixed an embarassing Chess960 bug found by Alexander Schmidt.
authorTord Romstad <tord@glaurungchess.com>
Mon, 5 Oct 2009 14:46:18 +0000 (16:46 +0200)
committerTord Romstad <tord@glaurungchess.com>
Mon, 5 Oct 2009 14:46:18 +0000 (16:46 +0200)
commit32dfaa56b03fda5ecd72f11b36130aa25b556ae9
treee8cbf5caad0ae6ebbff9c3e4cda864d48a1f2e0d
parent3701a8e57ded0876bd34ba1bc1afafc631ee059b
Fixed an embarassing Chess960 bug found by Alexander Schmidt.

It turned out that we used do_move_bb to update the king and rook
bitboards when making and unmaking castling moves, which obviously
doesn't work in Chess960, where the source and destination squares
for the king or rook could be identical.

No functional change in normal chess.
src/position.cpp