From 646d799f828df7f6787d349c81e75c70bbd9d1dc Mon Sep 17 00:00:00 2001 From: Francisco Salgueiro Date: Mon, 13 Nov 2023 14:16:07 +0000 Subject: [PATCH] add SetUp to pgn (fixes #88) --- src/utils/chess.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/chess.ts b/src/utils/chess.ts index 8f912ea6..dcbabbba 100644 --- a/src/utils/chess.ts +++ b/src/utils/chess.ts @@ -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";