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