We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66be7b7 commit be920c1Copy full SHA for be920c1
search.cpp
@@ -49,7 +49,7 @@ namespace engine
49
session.seldepth = std::max(session.seldepth, ply);
50
uint64_t hash = board.hash();
51
Move preferred = Move::none();
52
- if (TTEntry *entry = search::tt.lookup(hash))
+ if (TTEntry *entry = search::tt.lookup(hash)){
53
if (entry->getDepth() >= depth)
54
{
55
Value ttScore = entry->getScore();
@@ -76,6 +76,8 @@ namespace engine
76
return ttScore;
77
}
78
79
+ preferred = Move(entry->getMove());
80
+ }
81
if (depth == 0)
82
83
session.nodes++;
0 commit comments