]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Be sure to read options before to call trace_evaluate()
[stockfish] / src / uci.cpp
index bc412012d8f09d7f9e4034f909840d9f71fdd8f9..cec9ccf10d8e40e0d560ad43e0a5030e3eb64310 100644 (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()