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

resetBoard doesn't reset fens #5

Open
tsoj opened this issue Jul 8, 2019 · 3 comments
Open

resetBoard doesn't reset fens #5

tsoj opened this issue Jul 8, 2019 · 3 comments

Comments

@tsoj
Copy link

tsoj commented Jul 8, 2019

In class PgnToFen the function resetBoard doesn't reset self.fens[] which results in weird behavior of the function pgnFile.

@carangelmx
Copy link

carangelmx commented Sep 5, 2020

I found the same issue. Is there a workaround?
I put:
def resetBoard(self):
self.fens = []
...

@tsoj
Copy link
Author

tsoj commented Sep 5, 2020

I can't exactly remember what I did, but I think it was similar to what you did. However, as this library isn't really active anymore and as there are still some unfixed issues I would suggest using python chess which supports easy pgn parsing.

@carangelmx
Copy link

Got it. Thanks!

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