X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;h=cec9ccf10d8e40e0d560ad43e0a5030e3eb64310;hp=d15b086677204ff03b40027845766320447dad1f;hb=04108d45414c70c796d9378b247207b574e22414;hpb=caa02b0e43dbce0c723bc6499aab811ca3e5408e diff --git a/src/uci.cpp b/src/uci.cpp index d15b0866..cec9ccf1 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -65,7 +65,6 @@ bool execute_uci_command(const string& cmd) { static Position pos(StartPositionFEN, false, 0); // The root position UCIParser up(cmd); - Value dummy; string token; up >> token; // operator>>() skips any whitespace @@ -98,9 +97,10 @@ bool execute_uci_command(const string& cmd) { pos.print(); else if (token == "eval") - cout << "Incremental mg: " << mg_value(pos.value()) - << "\nIncremental eg: " << eg_value(pos.value()) - << "\nFull eval: " << evaluate(pos, dummy) << endl; + { + read_evaluation_uci_options(pos.side_to_move()); + cout << trace_evaluate(pos) << endl; + } else if (token == "key") cout << "key: " << hex << pos.get_key()