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

Nested variations handling #92

Open
WolandPL opened this issue Jan 3, 2022 · 1 comment
Open

Nested variations handling #92

WolandPL opened this issue Jan 3, 2022 · 1 comment

Comments

@WolandPL
Copy link

WolandPL commented Jan 3, 2022

Hi! Does the chesslib handle multiple variations nested in the PGN in a single game (i.e. a game with analysis)?

@andrebrunner
Copy link

andrebrunner commented Jan 5, 2022

I think there is a problem with the pgn-parser.
For example

  1. d4 f5 2. Nc3 Nf6 3. Bg5 d5 4. f3 c5 5. dxc5 (5. e4 5. .. Nc6 6. Bb5 a6
    (6. .. h6 7. Bxf6 gxf6 8. exd5) 7. Bxc6+ bxc6 8. e5) (5. e3 e6) 5. .. d4 6.
    Nb1 (6. Na4 Qa5+ 7. c3 Bd7 8. b3 dxc3) 6. .. e5 *
    the second (5. e3 e6) variation is not correctly integrated in the variations array ...

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

2 participants