projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
08e9de6
)
Skip cp in UCCI
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Tue, 30 Nov 2021 08:18:47 +0000 (09:18 +0100)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Tue, 30 Nov 2021 08:18:47 +0000 (09:18 +0100)
Closes #413.
src/uci.cpp
patch
|
blob
|
history
diff --git
a/src/uci.cpp
b/src/uci.cpp
index
d7f483c
..
28e1a57
100644
(file)
--- a/
src/uci.cpp
+++ b/
src/uci.cpp
@@
-419,7
+419,7
@@
string UCI::value(Value v) {
} else
if (abs(v) < VALUE_MATE_IN_MAX_PLY)
- ss << "cp " << v * 100 / PawnValueEg;
+ ss << (Options["Protocol"] == "ucci" ? "" : "cp ") << v * 100 / PawnValueEg;
else if (Options["Protocol"] == "usi")
// In USI, mate distance is given in ply
ss << "mate " << (v > 0 ? VALUE_MATE - v : -VALUE_MATE - v);