]> git.sesse.net Git - stockfish/commit
Use rml[0].pv[] instead of dedicated pv[] array
authorMarco Costalba <mcostalba@gmail.com>
Wed, 29 Dec 2010 07:47:14 +0000 (08:47 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Wed, 29 Dec 2010 08:22:30 +0000 (09:22 +0100)
commitd2a4aac53d8eb2cf21e0b8f1154412b1edd5afae
tree3963f21cab746717f93700f1e4924cc99bf7b00f
parent58c6e64069cc2d278756fb2e73f54ca5346ec35d
Use rml[0].pv[] instead of dedicated pv[] array

We have a small functionality change in case we have a
fail-high so that both rml[].pv and pv[] are updated, but if,
after researching, we have a fail-low then rml score is updated
again but pv[] remains the same and coming back from search we
used a PV line that has failed-low (after having failed-high).

With this patch we always use the 'correct' PV line, i.e. the
line with highest score at the end of the whole search.

Retire also redundant RootMove's 'move' member and directly
use pv[0] instead.
src/search.cpp