Skip to content

Commit

Permalink
fix: pgn builder addMove
Browse files Browse the repository at this point in the history
  • Loading branch information
Disservin committed Sep 2, 2023
1 parent f23961a commit d192831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pgn_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void PgnBuilder::addMove(chess::Board &board, const MoveData &move, std::size_t
std::stringstream ss;

ss << (move_number % 2 == 1 ? std::to_string(move_number / 2 + 1) + ". " : "");
ss << illegal ? move.move : moveNotation(board, move.move);
ss << (illegal ? move.move : moveNotation(board, move.move));

ss << addComment(
(move.score_string + "/" + std::to_string(move.depth)), formatTime(move.elapsed_millis),
Expand Down

0 comments on commit d192831

Please sign in to comment.