jven / studyopenings

A tool to study chess openings.
http://studyopenings.com
MIT License
89 stars 12 forks source link

issue with import feature #36

Closed bnap00 closed 2 years ago

bnap00 commented 2 years ago

importing a pgn with a valid move says its an illegal move Screenshot from 2021-08-04 10-29-51 it says Nge2 is not a legal move, but its a legal move, Nce2 is not a legal move Screenshot from 2021-08-04 10-30-36

jven commented 2 years ago

Hi, the PGN parsing library used by studyopenings is very strict and it likely needs you to input "Ne2" instead of "Nge2". The "g" disambiguation is not needed because no other knight (i.e. the pinned knight) can move to e2.

Instead of manually fixing your PGNs, if you upload them to lichess and re-export them from there, you should get back a "strict" PGN.

jven commented 2 years ago

Feel free to reopen the issue if that doesn't help you!