]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Retire square_from_string()
[stockfish] / src / uci.cpp
index 6adaf3929b1a530f133dc501e00223856975c44b..5a42cd9758bce299d6aa1bcef9a349ed48f1ab4e 100644 (file)
@@ -34,7 +34,6 @@
 #include "position.h"
 #include "san.h"
 #include "search.h"
-#include "uci.h"
 #include "ucioption.h"
 
 using namespace std;
@@ -120,10 +119,7 @@ namespace {
         cout << "uciok" << endl;
     }
     else if (token == "ucinewgame")
-    {
-        Options["New Game"].set_value("true");
         pos.from_fen(StartPositionFEN);
-    }
     else if (token == "isready")
         cout << "readyok" << endl;
     else if (token == "position")
@@ -198,7 +194,7 @@ namespace {
             StateInfo st;
             while (uip >> token)
             {
-                move = move_from_string(pos, token);
+                move = move_from_uci(pos, token);
                 pos.do_move(move, st);
                 if (pos.rule_50_counter() == 0)
                     pos.reset_game_ply();
@@ -297,7 +293,7 @@ namespace {
         {
             int numOfMoves = 0;
             while (uip >> token)
-                searchMoves[numOfMoves++] = move_from_string(pos, token);
+                searchMoves[numOfMoves++] = move_from_uci(pos, token);
 
             searchMoves[numOfMoves] = MOVE_NONE;
         }