Skip to content

Commit

Permalink
Make score output in datagen white relative
Browse files Browse the repository at this point in the history
bench 4732467
  • Loading branch information
rn5f107s2 committed May 18, 2024
1 parent e900748 commit dcbe3c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Datagen/Datagen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void playGame(Position &pos, const std::string& filename, u64 &fenCount) {

if (!pos.isCapture(bestMove) && extract<FLAG>(bestMove) != PROMOTION) {
fens.push(pos.fen());
scores.push(score);
scores.push(score * (pos.sideToMove ? 1 : -1));
bestMoves.push(bestMove);
}
pos.makeMove(bestMove);
Expand Down

0 comments on commit dcbe3c6

Please sign in to comment.