was storing starpos incorrectly in datagen | bench 1422551

This commit is contained in:
rektdie committed 2025-04-16 05:05:43 +02:00
1 parent bf9f1581d4
commit beccce4ae7
1 file changed
+3 -1
+3 -1
View File
@@ -108,6 +108,8 @@ static void PlayGames(int id, std::atomic<int>& positions, std::atomic<bool>& st
PlayRandMoves(board, ctx);
if (IsGameOver(board, ctx)) continue;
Board startpos = board;
SearchResults safeResults;
int staticEval = UTILS::ConvertToWhiteRelative(board, HCE::Evaluate(board));
@@ -133,7 +135,7 @@ static void PlayGames(int id, std::atomic<int>& positions, std::atomic<bool>& st
wdl = board.sideToMove ? 2 : 0;
}
game.format.packFrom(board, staticEval, wdl);
game.format.packFrom(startpos, staticEval, wdl);
gamesBuffer.emplace_back(game);
if (gamesBuffer.size() >= GAME_BUFFER) {