projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1f73a9e
)
Be sure to read options before to call trace_evaluate()
author
Marco Costalba
<mcostalba@gmail.com>
Tue, 1 Mar 2011 12:32:19 +0000 (13:32 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Tue, 1 Mar 2011 12:32:42 +0000 (13:32 +0100)
Otherwise in case we change an option with setoption and
then ask for "eval" command the evaluation is not updated.
Spotted by Justin Blanchard.
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
bc41201
..
cec9ccf
100644
(file)
--- a/
src/uci.cpp
+++ b/
src/uci.cpp
@@
-97,7
+97,10
@@
bool execute_uci_command(const string& cmd) {
pos.print();
else if (token == "eval")
+ {
+ read_evaluation_uci_options(pos.side_to_move());
cout << trace_evaluate(pos) << endl;
+ }
else if (token == "key")
cout << "key: " << hex << pos.get_key()