not returning TT score in qs | bench 3801453
This commit is contained in:
1 parent
f1d1684927
commit
58a415f9c4
1 file changed
+3
-8
+3
-8
@@ -137,20 +137,15 @@ static SearchResults Quiescence(Board board, int alpha, int beta, int ply) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int bestScore = HCE::Evaluate(board);
|
||||||
|
|
||||||
if constexpr (!isPV) {
|
if constexpr (!isPV) {
|
||||||
TTEntry *entry = TT.GetRawEntry(board.hashKey);
|
TTEntry *entry = TT.GetRawEntry(board.hashKey);
|
||||||
if (entry->hashKey == board.hashKey) {
|
if (entry->hashKey == board.hashKey) {
|
||||||
if (entry->nodeType == PV){
|
bestScore = entry->score;
|
||||||
return {entry->score, entry->bestMove};
|
|
||||||
} else if (entry->nodeType == AllNode && entry->score <= alpha) {
|
|
||||||
return entry->score;
|
|
||||||
} else if (entry->nodeType == CutNode && entry->score >= beta) {
|
|
||||||
return entry->score;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int bestScore = HCE::Evaluate(board);
|
|
||||||
|
|
||||||
if (bestScore >= beta) {
|
if (bestScore >= beta) {
|
||||||
return bestScore;
|
return bestScore;
|
||||||
|
|||||||
Reference in new issue
Block a user