projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
48127fe
)
Fix pondering
author
Gary Linscott
<glinscott@gmail.com>
Mon, 24 Nov 2014 00:49:53 +0000 (08:49 +0800)
committer
Gary Linscott
<glinscott@gmail.com>
Mon, 24 Nov 2014 00:50:36 +0000 (08:50 +0800)
The UCI specification states that an engine can never exit the search
while pondering.
No functional change.
Resolves #118
src/search.cpp
patch
|
blob
|
history
diff --git
a/src/search.cpp
b/src/search.cpp
index
e2cf76b
..
9f27862
100644
(file)
--- a/
src/search.cpp
+++ b/
src/search.cpp
@@
-1533,7
+1533,11
@@
void check_time() {
dbg_print();
}
- if (Limits.use_time_management() && !Limits.ponder)
+ // An engine may not stop pondering until told so by the GUI
+ if (Limits.ponder)
+ return;
+
+ if (Limits.use_time_management())
{
bool stillAtFirstMove = Signals.firstRootMove
&& !Signals.failedLowAtRoot