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

Import a pgn file and analyze? #14

Open
bhathiya opened this issue Jun 24, 2017 · 4 comments
Open

Import a pgn file and analyze? #14

bhathiya opened this issue Jun 24, 2017 · 4 comments

Comments

@bhathiya
Copy link

Is it possible to import an entire game from a pgn file, and then analyze it?

For example, to find if the white queen is available after the 10th move? Or what are the mistakes made in the game etc.?

Thanks.

@marshallcc
Copy link

Hi Bhatihiya,

You'll need to parse the PGN. Then feed it to pystockfish move by move. It'd be a good feature if it were automated.

Best,
Jarret

@bhathiya
Copy link
Author

Hi Jarret,

Thank you for the response. Do you mean I should parse the PGN using some other library? If yes, I can do that with python-chess. Let's say I did that and have the list of moves? Could you please show me how I can feed it to pystockfish and get something like I have mentioned above?

Appreciate your help.

Thanks,
Bhathiya

@marshallcc
Copy link

Main example answers your question.

Best,
Jarret

@bhathiya
Copy link
Author

Thank you. I'll try that.

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