1
0
Fork 0

Be sure to read options before to call trace_evaluate()

Otherwise in case we change an option with setoption and
then ask for "eval" command the evaluation is not updated.

Spotted by Justin Blanchard.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
sf_2.3.1_base
Marco Costalba 2011-03-01 13:32:19 +01:00
parent 1f73a9ed63
commit 0c775fae4b
1 changed files with 3 additions and 0 deletions

View File

@ -97,7 +97,10 @@ bool execute_uci_command(const string& cmd) {
pos.print();
else if (token == "eval")
{
read_evaluation_uci_options(pos.side_to_move());
cout << trace_evaluate(pos) << endl;
}
else if (token == "key")
cout << "key: " << hex << pos.get_key()