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>
pos.print();
else if (token == "eval")
pos.print();
else if (token == "eval")
+ {
+ read_evaluation_uci_options(pos.side_to_move());
cout << trace_evaluate(pos) << endl;
cout << trace_evaluate(pos) << endl;
else if (token == "key")
cout << "key: " << hex << pos.get_key()
else if (token == "key")
cout << "key: " << hex << pos.get_key()