lucaschessR2 icon indicating copy to clipboard operation
lucaschessR2 copied to clipboard

Invalid PGNs are accepted

Open KarolS opened this issue 2 years ago • 1 comments

Steps:

  1. create a PGN file with the following contents:
[Variant "From Position"]
[FEN "5rk1/4R2R/5r2/8/8/8/5PPP/6K1 w - - 0 1"]

1. Rg7+
  1. ToolsPGNRead PGN file and select the file

What happens:

  • The file loads, the move list contains Reg7#

What should happen:

The program should either:

  • Refuse to load the file and display an error message
  • Load the file partially up to the invalid move, and optionally display an error message

KarolS avatar Mar 22 '23 00:03 KarolS

The + is discriminant, a rare case. Fixed in the next update, it will be considered an error and it will not be imported. Thanks.

lukasmonk avatar Mar 22 '23 07:03 lukasmonk