]> git.sesse.net Git - stockfish/commit
search: fix a bug and clear history update
authorMarco Costalba <mcostalba@gmail.com>
Sun, 7 Sep 2008 07:38:19 +0000 (09:38 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 7 Sep 2008 07:38:19 +0000 (09:38 +0200)
commitbc4e937f05702641f6d6a99a1dd03b6703a098ed
tree5f89bcc06f41f8e2d8a531bc73678885d68a341e
parent6c592955e1f4a1dcbd1b139dc224573fd34fd0ce
search: fix a bug and clear history update

When a move produces a beta-cut off is marked as
success in history and all the remaining ones are
marked as failures.

The loop across the searched moves, that is used
to register failures, does not skip the good one,
that is then registered as a failure too.

The patch fixes the bug and cleanup the code.

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