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

Unnecessary disambiguator leads to error #348

Open
mliebelt opened this issue Feb 19, 2022 · 1 comment
Open

Unnecessary disambiguator leads to error #348

mliebelt opened this issue Feb 19, 2022 · 1 comment
Assignees
Labels

Comments

@mliebelt
Copy link
Owner

The following leads directly to an error:

pgnView('id', {pgn: 'Ngf3'})

The reason seems to be, that for chess.js, this is a move with an unnecessary disambiguator.

Find a solution that works mostly, and avoid additional calls if possible.g1
Here are some move variants:

  • Works: Nf3, Ng1f3, Ng1-f3, Ngxf3
  • Don't work: Ngf3, Nxf3
@mliebelt mliebelt self-assigned this Feb 19, 2022
@mliebelt mliebelt added the bug label Feb 19, 2022
@mliebelt
Copy link
Owner Author

mliebelt commented Jan 3, 2023

Found another strange one, added a test case for it.

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

No branches or pull requests

1 participant