Skip to content

Commit

Permalink
add SetUp to pgn (fixes #88)
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoBSalgueiro committed Nov 13, 2023
1 parent e924377 commit 646d799
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/chess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ export function getPGN(
pgn += headersToPGN(headers);
}
if (root && tree.fen !== DEFAULT_POSITION) {
pgn += '[SetUp "1"]\n'
pgn += '[FEN "' + tree.fen + '"]\n';
}
pgn += "\n";
Expand Down

0 comments on commit 646d799

Please sign in to comment.