projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a8f457d
)
Pass TT move instead of Rml[0].pv[0] to MovePicker
author
Marco Costalba
<mcostalba@gmail.com>
Sun, 23 Jan 2011 07:59:16 +0000 (08:59 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Sun, 23 Jan 2011 08:11:31 +0000 (09:11 +0100)
This is used for secondary scoring so it does not
changes the fact that Rml[0].pv[0] is always tried
as first anyhow.
It happens this is even a no functional change patch
becuase we reinsert PV in TT after a search so that
TT move is actually Rml[0].pv[0].
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp
patch
|
blob
|
history
diff --git
a/src/search.cpp
b/src/search.cpp
index
a3238a3
..
e98ea81
100644
(file)
--- a/
src/search.cpp
+++ b/
src/search.cpp
@@
-329,8
+329,8
@@
namespace {
// before to search them.
template<> struct MovePickerExt<false, true> : public MovePicker {
- MovePickerExt(const Position& p, Move, Depth d, const History& h, SearchStack* ss, Value b)
- : MovePicker(p, Rml[0].pv[0], d, h, ss, b), firstCall(true) {
+ MovePickerExt(const Position& p, Move ttm, Depth d, const History& h, SearchStack* ss, Value b)
+ : MovePicker(p, ttm, d, h, ss, b), firstCall(true) {
Move move;
Value score = VALUE_ZERO;