]> git.sesse.net Git - stockfish/commit
Bug fix for discovered checks in connected_moves().
authorTord Romstad <tord@glaurungchess.com>
Wed, 2 Sep 2009 07:58:15 +0000 (09:58 +0200)
committerTord Romstad <tord@glaurungchess.com>
Wed, 2 Sep 2009 07:58:15 +0000 (09:58 +0200)
commit03d6a86900044c8b4a512c7e53464fd0a67866fc
tree6bb08e6acda328e162593cba258e7afe0ddc8348
parent17c511922277e49eacdede3c92491ee32c303c30
Bug fix for discovered checks in connected_moves().

Because of a hard-to-spot single-character bug in connected_moves(),
the discovered check code had no effect whatsoever. The condition
in the if (...) statement at the beginning of the code would always
return false.

Thanks to Edsel Apostol for pointing out this bug!
src/search.cpp