mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
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>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user