diff --git a/source/datagen.cpp b/source/datagen.cpp index 0d1369b..3d5b81d 100644 --- a/source/datagen.cpp +++ b/source/datagen.cpp @@ -134,8 +134,8 @@ static void PlayGames(int id, std::atomic& positions, std::atomic& st MOVEGEN::GenerateMoves(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);