From 7c8a8e038f0acd48a30ec7e3971c7d0efcfbf25d Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 17 Mar 2012 11:24:19 +0100 Subject: [PATCH 1/1] 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 --- src/uci.cpp | 3 --- 1 file changed, 3 deletions(-) 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; -- 2.39.2