gbtami / pychess-variants

Chess variant server
https://www.pychess.org
GNU Affero General Public License v3.0
229 stars 112 forks source link

Continue unfinished imported games in analysis page #1470

Closed gbtami closed 1 month ago

gbtami commented 1 month ago

Uwe reported on Github: "Hi there, I've used PyChess to document games of our (real world) XiangQi tournament. Since most players have an indecipherable handwriting there were often errors in the input games. - Then I exported the game so far and tried to find the mistake. I could edit it with a simple text editor and imported it again into PyChess (Import => then analyzing board) and I could continue the documentation of the game (and export or copy the PGN finally). - Since now: when I import a game and continue it, the PGN description will not change, so I'm no longer able to export the full game. - Maybe this function wasn't intended, but it was useful... - I attach an example with 17 moves - and I wonder why it takes more than 50 moves although red has lost a rook in the fourth move... - but it is no longer possible to load, play and save the game. - Thanks in advance - Uwe"

[Event "xxx"]
[Site "https://www.pychess.org/"]
[Date "2024.05.11"]
[Round "-"]
[White "None"]
[Black "None"]
[Result "*"]
[TimeControl "-"]
[WhiteElo "1500?"]
[BlackElo "1500?"]
[Variant "Xiangqi"]
[FEN "rnbakabnr/9/1c5c1/p1p1p1p1p/9/9/P1P1P1P1P/1C5C1/9/RNBAKABNR w - - 0 1"]
[SetUp "1"]

1. Cbe3 Cbe8 2. Hc3 Hc8 3. Rb1 Chg8 4. Rb8 Cxb8 5. Ch8 Ege8 6. Pe5 Hf9 7. Ch7 Rh10 
8. Chxe7+ Hcxe7 9. Hg3 Hd5 10. Hce4 Hxe3 11. Egxe3 Cb3 12. Eg1 Pg6 13. Pe6 Rh3 14. Hf6 Rxg3
15. Hxg8 Rxg4 16. Hxi7 Cb5 17. Ri3 Ce5 *