Don't set Search::RootColor in Eval::trace
authorMarco Costalba <mcostalba@gmail.com>
Sun, 11 Aug 2013 05:02:50 +0000 (07:02 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 11 Aug 2013 05:02:50 +0000 (07:02 +0200)
commit15616ad19965444ea66896a0511f2a4d48745110
treee8dcb4a7fb5d3caa57a066d2e6241b4635308b83
parent94a3608ab9f2334784ac3b111dc79c9eb5e33ba3
Don't set Search::RootColor in Eval::trace

Search::RootColor is a global parameter set
before to start a search, it is not something
trace() should change.

This patch allows to add trace() calls, for
debugging, inside search itself without altering
the bench, and also ensures that the values
returned by trace() and evaluate() are fully
equivalent.

No functional change.
src/evaluate.cpp
src/uci.cpp