jven / studyopenings

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

Why are these 2 lines considered illegal moves? #27

Open mikestefanello opened 4 years ago

mikestefanello commented 4 years ago

Really awesome tool you created. Exactly what I was looking for.

I was able to import 1 pgn successfully. The other is having a lot of problems (even though it came from chessable). I condensed it as much as possible to get it to allow to be imported, but even these 2 lines alone are throwing errors about illegal moves:

[White "103"]

1. c4 e5 2. g3 Nc6 3. Bg2 f5 4. Nc3 Nf6 5. e3 e4 6. d3 Bb4 7. Nge2 Ne5 8. dxe4

[White "104"]

1. c4 e5 2. g3 Nc6 3. Bg2 f5 4. Nc3 Nf6 5. e3 e4 6. d3 Bb4 7. Nge2 d5 8. O-O

Maybe I'm missing the problem?

Thanks

mikestefanello commented 4 years ago

If I switch Nge2 with Ne2 it works.

mikestefanello commented 4 years ago

So, it seems to work because Ncg2 is considered illegal given the pin; but the move should still pass validation because that move is legal, it just technically doesn't need the g in it.