]> git.sesse.net Git - stockfish/commitdiff
Retire "ucinewgame" UCI option
authorMarco Costalba <mcostalba@gmail.com>
Sat, 17 Mar 2012 10:24:19 +0000 (11:24 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 17 Mar 2012 10:24:19 +0000 (11:24 +0100)
UCI protocol it is not clear about what the engine
should be supposed to do when "ucinewgame" is
received. Stockfish simply sets the position to
start FEN, but it is redundant becuase the GUI always
resends the position after "ucinewgame" command, so
it seems we can safely ignore that command.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/uci.cpp

index 3a522a88216bf03483c70670d5c0a65b41b5363e..ed370483435366e62e459ea00a985b3a288ed8f0 100644 (file)
@@ -83,9 +83,6 @@ void uci_loop() {
       else if (token == "go")
           go(pos, is);
 
       else if (token == "go")
           go(pos, is);
 
-      else if (token == "ucinewgame")
-          pos.from_fen(StartFEN, false);
-
       else if (token == "isready")
           cout << "readyok" << endl;
 
       else if (token == "isready")
           cout << "readyok" << endl;