changed wdl condition | bench 1422551

This commit is contained in:
rektdie committed 2025-04-20 11:26:51 +02:00
1 parent 62359f7907
commit 658d72480d
1 file changed
+2 -2
+2 -2
View File
@@ -134,8 +134,8 @@ static void PlayGames(int id, std::atomic<int>& positions, std::atomic<bool>& st
MOVEGEN::GenerateMoves<All>(board);
}
if (std::abs(safeResults.score) >= std::abs(SEARCH::MATE_SCORE) - SEARCH::MAX_PLY) {
wdl = board.sideToMove ? 2 : 0;
if (!SEARCH::IsDraw(board, ctx)) {
wdl = board.sideToMove ? 2 : 0;
}
game.format.packFrom(startpos, staticEval, wdl);