]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Promote OptionsMap to a class
[stockfish] / src / uci.cpp
index bc412012d8f09d7f9e4034f909840d9f71fdd8f9..8b90c22707574d1b41b21b53e11d74016309a504 100644 (file)
@@ -77,8 +77,8 @@ bool execute_uci_command(const string& cmd) {
 
   else if (token == "uci")
       cout << "id name " << engine_name()
-           << "\nid author " << engine_author()
-           << "\n" << options_to_uci()
+           << "\nid author " << engine_authors()
+           << "\n" << Options.print_all()
            << "\nuciok" << endl;
 
   else if (token == "ucinewgame")
@@ -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()