mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Silently handle "ucinewgame" command
Avoid returning "Unknown command", it seems some GUI are misguided by this. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -88,6 +88,9 @@ void uci_loop() {
|
|||||||
else if (token == "go")
|
else if (token == "go")
|
||||||
go(pos, is);
|
go(pos, is);
|
||||||
|
|
||||||
|
else if (token == "ucinewgame")
|
||||||
|
{ /* Avoid returning "Unknown command" */ }
|
||||||
|
|
||||||
else if (token == "isready")
|
else if (token == "isready")
|
||||||
cout << "readyok" << endl;
|
cout << "readyok" << endl;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user