]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Retire "ucinewgame" UCI option
[stockfish] / src / uci.cpp
index a9ace955e81b342ab50df69f6a870d0ae9fbebe3..ed370483435366e62e459ea00a985b3a288ed8f0 100644 (file)
@@ -83,9 +83,6 @@ void uci_loop() {
       else if (token == "go")
           go(pos, is);
 
-      else if (token == "ucinewgame")
-          pos.from_fen(StartFEN, false);
-
       else if (token == "isready")
           cout << "readyok" << endl;
 
@@ -105,10 +102,7 @@ void uci_loop() {
           pos.flip_me();
 
       else if (token == "eval")
-      {
-          EvalRootColor = pos.side_to_move();
-          cout << trace_evaluate(pos) << endl;
-      }
+          cout << Eval::trace(pos) << endl;
 
       else if (token == "key")
           cout << "key: " << hex     << pos.key()