projects
/
stockfish
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9893e7f
)
Simplify next_move by always scoring evasions
author
Joost Vandevondele
<Joost.VandeVondele@gmail.com>
Sun, 16 Oct 2016 13:20:05 +0000
(15:20 +0200)
committer
Marco Costalba
<mcostalba@gmail.com>
Thu, 20 Oct 2016 15:17:14 +0000
(17:17 +0200)
For a default bench, this fixes the last valgrind
error (jump on uninitialised value).
Passed STC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 187869 W: 33303 L: 33463 D: 121103
No functional change.
src/movepick.cpp
patch
|
blob
|
history
diff --git
a/src/movepick.cpp
b/src/movepick.cpp
index
95e6000
..
c187c3a
100644
(file)
--- a/
src/movepick.cpp
+++ b/
src/movepick.cpp
@@
-271,8
+271,7
@@
Move MovePicker::next_move() {
case EVASIONS_INIT:
cur = moves;
endMoves = generate<EVASIONS>(pos, cur);
- if (endMoves - cur - (ttMove != MOVE_NONE) > 1)
- score<EVASIONS>();
+ score<EVASIONS>();
++stage;
case ALL_EVASIONS: