X-Git-Url: https://git.auder.net/%3C?a=blobdiff_plain;f=public%2Fjavascripts%2Fbase_rules.js;h=de1a0d0fa4ec4eab521532cafa123f3b5f71c113;hb=762b7c9ca36aedb3e720b31c103be429446060d3;hp=0a5c0e72e5e8d7f6f7e3597a8b4eb913b23be8f5;hpb=8864e274ad980dd1b615c7c70fc3c4bc0e7c0a9e;p=vchess.git diff --git a/public/javascripts/base_rules.js b/public/javascripts/base_rules.js index 0a5c0e72..de1a0d0f 100644 --- a/public/javascripts/base_rules.js +++ b/public/javascripts/base_rules.js @@ -1012,7 +1012,7 @@ class ChessRules } // The score is already computed when calling this function - getPGN(mycolor, score) + getPGN(mycolor, score, fenStart) { let pgn = ""; pgn += '[Site "vchess.club"]
'; @@ -1020,7 +1020,8 @@ class ChessRules pgn += '[Date "' + d.getFullYear() + '-' + d.getMonth() + '-' + d.getDate() + '"]
'; pgn += '[White "' + (mycolor=='w'?'Myself':'Anonymous') + '"]
'; pgn += '[Black "' + (mycolor=='b'?'Myself':'Anonymous') + '"]
'; - pgn += '[Result "' + score + '"]
'; + pgn += '[Fen "' + fenStart + '"]
'; + pgn += '[Result "' + score + '"]

'; for (let i=0; i