chrislicodes / obsidian-chess-study

A chess study helper and PGN viewer/editor for Obsidian.
GNU General Public License v3.0
30 stars 3 forks source link

Does not load games ending in a draw #18

Open namgirl opened 4 months ago

namgirl commented 4 months ago

Hello,

I just started with the plug-in and really like it. Thank you.

My issue is: whenever I try to build a board for a game that ends in a draw, I get an error message:

"There was an error during PGN parsing".

I got the PGN-file from www.chessgames.com

It only works, if you do not load the "1/2-1/2" at the end of the PGN.

It's not urgent as I found a way to get it working, but maybe someone else is struggeling too.

Kind regards

Anette

namgirl commented 4 months ago

Just when I thought, that it works, it doesn't...

The PGN I try to load is:

  1. e4 c5 2. Nf3 d6 3. d4 cxd4 4. Nxd4 Nf6 5. Nc3 a6 6. Bc4 e6 7. Bb3 Nbd7 8. f4 Nc5 9. Qf3 b5 10 .f5 Bd7 11. fxe6 fxe6 12. Bg5 Be7 13. O-O-O O-O 14. e5 Nfe4 15. Bxe7 Qxe7 16. Nxe4 Rxf3 17. exd6 Nxb3+ 18. Nxb3 Qf8 19. gxf3 Qxf3 20. Nec5 Bc6 21. Rhe1 e5 22. d7 Rd8 23. Rd6 a5 24. a3 a4 25. Nd2 Qg2 26. c3 Bd5 27. Nd3 Bb3 28. Nxe5 Qxh2 29. Nc6 Qxd6 30. Re8+ Kf7 31. Nxd8+ Kg6 32. Ne6 Qh2 33. Nf4+ Kh6 34. Nd3 Qg1+ 35. Re1 Qg5 36. Ne5 g6 37. Rf1 Be6 38. Nf7+ Bxf7 39. Rxf7 Qd5 40. Re7 Qd6 41. Rf7 Qd3 42. Ne4 Qe3+ 43. Nd2 Qd3 1/2-1/2

Here I get the error messages, even if I omit the "1/2-1/2" at the end.

Kind regards

Anette