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

Parsing comments for eval and clock time #44

Open
vladkvit opened this issue Dec 12, 2024 · 1 comment
Open

Parsing comments for eval and clock time #44

vladkvit opened this issue Dec 12, 2024 · 1 comment

Comments

@vladkvit
Copy link

vladkvit commented Dec 12, 2024

Lichess and Chess.com PGNs are annotated with eval and clock like so:

1. e4 { [%eval 0.17] [%clk 0:00:30] } 1... c5 { [%eval 0.19] [%clk 0:00:30] }
2. Nf3 { [%eval 0.25] [%clk 0:00:29] } 2... Nc6 { [%eval 0.33] [%clk 0:00:30] }

Would there be interest in adding parsing for these values? I'm implementing this parsing either way (as I need it for my chess engine), but I thought it might be better to have the functionality as part of this library.

@vladkvit
Copy link
Author

For reference, I ended up implementing it in my own project - see https://github.com/vladkvit/rust_pgn_reader_python_binding/blob/main/src/comment_parsing.rs

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