From: Marco Costalba Date: Sat, 17 Mar 2012 10:24:19 +0000 (+0100) Subject: Retire "ucinewgame" UCI option X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=7c8a8e038f0acd48a30ec7e3971c7d0efcfbf25d;hp=ee838f56f7492f3a00927657e8dc3402c752cbd3 Retire "ucinewgame" UCI option 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 --- diff --git a/src/uci.cpp b/src/uci.cpp index 3a522a88..ed370483 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -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;