projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
def5002
)
Stop search if only 1 legal move
author
jhellis3
<jhellis3@gmail.com>
Sun, 3 Mar 2013 21:13:05 +0000 (15:13 -0600)
committer
Marco Costalba
<mcostalba@gmail.com>
Mon, 4 Mar 2013 07:30:55 +0000 (08:30 +0100)
There is no point searching a move that is forced.
It wastes time while allowing computer opponents to
fill hash with 100% accuracy.
[edit: Condition moved together with "easy move" ones]
Bench identical: 4922272
src/search.cpp
patch
|
blob
|
history
diff --git
a/src/search.cpp
b/src/search.cpp
index
33fff82
..
19ebc5e
100644
(file)
--- a/
src/search.cpp
+++ b/
src/search.cpp
@@
-452,6
+452,7
@@
namespace {
&& !stop
&& PVSize == 1
&& ( (bestMoveNeverChanged && recapture)
+ || RootMoves.size() == 1
|| Time::now() - SearchTime > (TimeMgr.available_time() * 40) / 100))
{
Value rBeta = bestValue - 2 * PawnValueMg;