Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why are these 2 lines considered illegal moves? #27

Open
mikestefanello opened this issue Mar 10, 2020 · 2 comments
Open

Why are these 2 lines considered illegal moves? #27

mikestefanello opened this issue Mar 10, 2020 · 2 comments

Comments

@mikestefanello
Copy link

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
Copy link
Author

If I switch Nge2 with Ne2 it works.

@mikestefanello
Copy link
Author

mikestefanello commented Mar 10, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant