]> git.sesse.net Git - stockfish/commit
Use move not ttMove in exclude search
authorMarco Costalba <mcostalba@gmail.com>
Fri, 27 Nov 2009 14:35:34 +0000 (15:35 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Fri, 27 Nov 2009 14:38:51 +0000 (15:38 +0100)
commit25c22ffe7ad94f76e4330626adb50304b8392d66
treee761e9c1f3d4129828a6721ff14f56ac17703e22
parentae6157fcf33f840361acb24f98ea37299b3eaa36
Use move not ttMove in exclude search

If we arrive until the exclusion search call then
we know that move == ttMove == tte->move()

But using ttMove in search call while, during excluded search
conditions we have used tte->Move()could be a little bit suboptimal.
On the other side using tte->move() also in search call is a bit ugly
so opt for the third choice that is the most clean becasue from the
conditions the reader easily understands that we are talking of ttMove
and that we ant to exclude the move we are evaluating in that moment.

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