using NNUE eval | bench 10737067

This commit is contained in:
rektdie committed 2025-04-08 22:42:31 +02:00
1 parent d72a0c341e
commit 2ea6bd1c64
8 files changed
+109 -44

No files matched your search

+2 -2
View File
@@ -156,7 +156,7 @@ static SearchResults Quiescence(Board board, int alpha, int beta, int ply) {
}
}
int bestScore = HCE::Evaluate(board);
int bestScore = UTILS::ConvertToWhiteRelative(board, NNUE::net.Evaluate(board));
TTEntry *entry = TT.GetRawEntry(board.hashKey);
if (entry->hashKey == board.hashKey) {
@@ -239,7 +239,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) {
if (depth <= 0) return Quiescence<mode>(board, alpha, beta, ply);
const int staticEval = HCE::Evaluate(board);
const int staticEval = UTILS::ConvertToWhiteRelative(board, NNUE::net.Evaluate(board));
if (!board.InCheck()) {
if (ply) {