was storing starpos incorrectly in datagen | bench 1422551
This commit is contained in:
1 parent
bf9f1581d4
commit
beccce4ae7
1 file changed
+3
-1
+3
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user