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

Get/Detect Opening from a game state or PGN #70

Open
MattMaginniss opened this issue Sep 21, 2021 · 2 comments
Open

Get/Detect Opening from a game state or PGN #70

MattMaginniss opened this issue Sep 21, 2021 · 2 comments

Comments

@MattMaginniss
Copy link

I have been messing around with this for a project I am working on and I think it would be valuable to have a way to use this to detect the opening based on the match as it has been played.

Do you think this is something that would be possible? I don't think I see this capability by any other NPM package and it could be a nice feature to add to an already great tool.

Thanks!

@MattMaginniss MattMaginniss changed the title Enhancement Idea: Get/Detect Opening from a game state or PNG Enhancement Idea: Get/Detect Opening from a game state or PGN Sep 21, 2021
@brozeph
Copy link
Owner

brozeph commented Jan 3, 2022

@MatthewMaginniss - this is a cool feature idea! I need to crack open my book of chess openings... now to figure out where I placed it. This is a cool idea!

@MattMaginniss
Copy link
Author

MattMaginniss commented Jan 3, 2022

Nice! Yeah, I think I actually implemented this in a way on my local environment for testing. I used these TSVs to compile them in to a single PGN file (attached here as a .txt file since github doesn't allow PGN) and have been using it with good success but my solution isn't the most efficient. Figured it might help to have the compiled ECO table that lichess uses.

eco.pgn.txt

@Piterden Piterden changed the title Enhancement Idea: Get/Detect Opening from a game state or PGN Get/Detect Opening from a game state or PGN Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants