projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
46a50cb
)
Silently handle "ucinewgame" command
author
Marco Costalba
<mcostalba@gmail.com>
Wed, 28 Mar 2012 17:22:40 +0000 (18:22 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Wed, 28 Mar 2012 17:24:02 +0000 (18:24 +0100)
Avoid returning "Unknown command", it seems some
GUI are misguided by this.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/uci.cpp
patch
|
blob
|
history
diff --git
a/src/uci.cpp
b/src/uci.cpp
index
1b77050
..
c3eb919
100644
(file)
--- a/
src/uci.cpp
+++ b/
src/uci.cpp
@@
-88,6
+88,9
@@
void uci_loop() {
else if (token == "go")
go(pos, is);
+ else if (token == "ucinewgame")
+ { /* Avoid returning "Unknown command" */ }
+
else if (token == "isready")
cout << "readyok" << endl;