was incorrectly writing scores as black-relative in datagen | bench 4333527
This commit is contained in:
1 parent
89639e01e6
commit
57ce93fe76
1 file changed
+4
-3
+4
-3
@@ -131,12 +131,13 @@ static void PlayGames(int id, std::atomic<int>& positions, std::atomic<bool>& st
|
||||
|
||||
if (!results.bestMove) break;
|
||||
safeResults = results;
|
||||
board.MakeMove(results.bestMove);
|
||||
ctx.positionHistory[board.positionIndex] = board.hashKey;
|
||||
|
||||
|
||||
game.moves.emplace_back(ScoredMove(results.bestMove.ConvertToViriMoveFormat(),
|
||||
UTILS::ConvertToWhiteRelative(board, results.score)));
|
||||
|
||||
board.MakeMove(results.bestMove);
|
||||
ctx.positionHistory[board.positionIndex] = board.hashKey;
|
||||
|
||||
positions++;
|
||||
|
||||
MOVEGEN::GenerateMoves<All>(board);
|
||||
|
||||
Reference in new issue
Block a user